fixed backend deployment with systemd

This commit is contained in:
b3yond 2018-07-14 17:17:36 +02:00
parent 2d879383d4
commit 10b3550ad6
4 changed files with 8 additions and 3 deletions

View file

@ -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

View file

@ -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()

View file

@ -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:

View file

@ -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