forked from ATLBitLab/abbot-backup
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ATLBitLab#14 from ATLBitLab/3-server-migration
closes ATLBitLab#3
- Loading branch information
Showing
5 changed files
with
51 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[Unit] | ||
Description=ATL BitLab Bot | ||
Documentation=https://github.com/ATLBitLab/abbot | ||
|
||
After=network-online.target | ||
Wants=network-online.target | ||
|
||
[Service] | ||
Environment=HOME=/home/abbot | ||
|
||
WorkingDir=/home/abbot/abbot | ||
ExecStart=/home/abbot/abbot/start.sh | ||
|
||
Restart=always | ||
RestartSec=10 | ||
|
||
StandardOutput=/home/abbot/abbot/src/data/runtime.log | ||
StandardError=/home/abbot/abbot/src/data/debug.log | ||
|
||
SyslogIdentifier=abbot | ||
|
||
User=abbot | ||
Group=abbot | ||
|
||
RuntimeDirectory=abbot | ||
RuntimeDirectoryMode=0710 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
#!/usr/bin/env bash | ||
source .venv/bin/activate | ||
pip install -r requirements.txt | ||
sudo cp atlbitlab-bot.service /etc/systemd/system | ||
sudo cp abbot.service /etc/systemd/system | ||
sudo systemctl daemon-reload | ||
sudo systemctl enable atlbitlab-bot | ||
sudo systemctl start atlbitlab-bot | ||
sudo systemctl status atlbitlab-bot | ||
sudo systemctl start atlbitlab-bot | ||
sudo journalctl -u atlbitlab-bot | tail | ||
sudo systemctl enable abbot | ||
sudo systemctl start abbot | ||
sudo systemctl status abbot | ||
sudo systemctl start abbot | ||
sudo journalctl -u abbot | tail | ||
echo "Done!" | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/bash | ||
|
||
BASE_DIR="$HOME/telegram-gpt-bot" | ||
BASE_DIR="$HOME/abbot" | ||
source "$BASE_DIR/.env/bin/activate" | ||
cd "$BASE_DIR/src" | ||
python3 cli.py | ||
python3 cli.py --dev |