-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Установка бота на render.com #8
base: master
Are you sure you want to change the base?
Changes from all commits
25d3955
c7404d9
9a6d104
425a240
3d5ca35
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,10 +62,14 @@ | |
3. Запустите бота: `docker compose up -d` (или `docker-compose up -d` на старых версиях Docker); | ||
4. Проверьте, что контейнер поднялся: `docker compose ps` | ||
|
||
### Render.com | ||
|
||
[![Развернуть на Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy) | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Было бы круто запилить еще баттоны для DigitalOcean и пары других мейнстримных хостеров, но это уже явно за рамками этого PR |
||
## Локализация | ||
|
||
Если вы хотите изменить тексты в боте, ознакомьтесь с информацией в | ||
[Wiki](https://github.com/MasterGroosha/telegram-feedback-bot/wiki). В настоящий момент поддерживается только | ||
изменение текстов сообщений, но не описаний в меню команд | ||
|
||
Папку `bot/locales` в случае с развертыванием бота в Docker можно переопределить, подсунув её снаружи как volume. | ||
Папку `bot/locales` в случае с развертыванием бота в Docker можно переопределить, подсунув её снаружи как volume. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
def urljoin(*args): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Зачем? Тем более, что, возможно, на Windows это сломается There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Защита от дураков. Эта утилита не для путей, а для URL. Честно говоря, не нашел способа лучше для построения URL. |
||
return "/".join(map(lambda x: str(x).strip("/"), args)) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Schema documented at https://render.com/docs/yaml-spec | ||
services: | ||
- type: web # valid values: https://render.com/docs/yaml-spec#type | ||
name: telegram-feedback-bot | ||
repo: https://github.com/Mehavoid/telegram-feedback-bot.git | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Также заменить репо |
||
branch: add-renderoku | ||
Comment on lines
+5
to
+6
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Не забудьте заменить. :) |
||
runtime: python # valid values: https://render.com/docs/blueprint-spec#runtime | ||
plan: free # optional; defaults to starter | ||
region: frankfurt # https://render.com/docs/regions | ||
buildCommand: "pip install -r requirements.txt" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. А не лучше ли положить образ проекта к Github Container Registry и юзать здесь его? Тем самым ускорится запуск проекта и пользователь получит возможность погонять приложенку |
||
startCommand: "python -m bot" | ||
numInstances: 1 | ||
envVars: | ||
- key: BOT_TOKEN | ||
sync: false | ||
- key: ADMIN_CHAT_ID | ||
sync: false | ||
- key: REMOVE_SENT_CONFIRMATION | ||
sync: false | ||
- key: DROP_PENDING_UPDATES | ||
value: no | ||
- key: PYTHON_VERSION # https://render.com/docs/python-version | ||
value: 3.9.13 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Кажется было бы круто добросить коротко разъяснение вроде - "Самый простой способ увидеть приложение в "бою" - воспользоваться платформой render.com. Для этого зарегистрируйтесь на сайте и нажмите ..."
В отличие от хероку, рендер мало кто знает да и вообще для не слишком опытных пользователей оно будет полезно