fix weburl command (#18)

This commit is contained in:
Dmitry Afanasyev 2023-09-28 18:43:27 +03:00 committed by GitHub
parent c8b5639944
commit 7cfda281f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -14,6 +14,18 @@ sudo systemctl start gptchatbot.service
sudo 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 ```bash

View File

@ -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: async def website(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
if not update.effective_message: if not update.effective_message:
return None 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}") await update.effective_message.reply_text(f"Веб версия: {website}")