From 7cfda281f7dbd34ea5973af7383fcc000aaf5d9f Mon Sep 17 00:00:00 2001 From: Dmitry Afanasyev <71835315+Balshgit@users.noreply.github.com> Date: Thu, 28 Sep 2023 18:43:27 +0300 Subject: [PATCH] fix weburl command (#18) --- README.md | 12 ++++++++++++ bot_microservice/core/commands.py | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 05335c0..5f1bc7c 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,18 @@ sudo systemctl start gptchatbot.service sudo ``` +### Update + +```bash +git pull balshgit main +sudo rsync -a --delete --progress /home/balsh/Pycharmprojects/gpt_chat_bot/* /opt/gpt_chat_bot/ --exclude .git +cd /opt/gpt_chat_bot/ +docker pull balshdocker/freegpt +STAGE=production docker compose build +sudo systemctl stop gptchatbot.service +sudo systemctl start gptchatbot.service +``` + ```bash diff --git a/bot_microservice/core/commands.py b/bot_microservice/core/commands.py index 3305797..887cf62 100644 --- a/bot_microservice/core/commands.py +++ b/bot_microservice/core/commands.py @@ -47,7 +47,7 @@ async def about_bot(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: async def website(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: if not update.effective_message: return None - website = urljoin(settings.DOMAIN, f"{settings.URL_PREFIX}/chat") + website = urljoin(settings.DOMAIN, f"{settings.URL_PREFIX}/chat/") await update.effective_message.reply_text(f"Веб версия: {website}")