fixed backend deployment with systemd
This commit is contained in:
parent
2d879383d4
commit
10b3550ad6
|
@ -133,6 +133,11 @@ sudo service nginx restart
|
|||
sudo cp deployment/ticketfrei-web.service /etc/systemd/system/
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl start ticketfrei-web.service
|
||||
|
||||
# create and start the backend systemd service
|
||||
sudo cp deployment/ticketfrei-backend.service /etc/systemd/system
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl start ticketfrei-backend.service
|
||||
```
|
||||
|
||||
### Logs
|
||||
|
|
|
@ -21,7 +21,7 @@ class MastodonBot(Bot):
|
|||
try:
|
||||
m = Mastodon(*user.get_masto_credentials())
|
||||
except TypeError:
|
||||
logger.error("No Mastodon Credentials in database.", exc_info=True)
|
||||
#logger.error("No Mastodon Credentials in database.", exc_info=True)
|
||||
return mentions
|
||||
try:
|
||||
notifications = m.notifications()
|
||||
|
|
|
@ -30,7 +30,7 @@ class TwitterBot(Bot):
|
|||
try:
|
||||
api = self.get_api(user)
|
||||
except Exception:
|
||||
logger.error("Error Authenticating Twitter", exc_info=True)
|
||||
#logger.error("Error Authenticating Twitter", exc_info=True)
|
||||
return reports
|
||||
last_mention = user.get_seen_tweet()
|
||||
try:
|
||||
|
|
|
@ -9,7 +9,7 @@ ExecStart=/srv/ticketfrei/bin/python3 backend.py
|
|||
#RuntimeDirectory=uwsgi
|
||||
Restart=always
|
||||
KillSignal=SIGQUIT
|
||||
Type=notify
|
||||
Type=simple
|
||||
StandardError=syslog
|
||||
NotifyAccess=all
|
||||
|
||||
|
|
Loading…
Reference in a new issue