diff --git a/README.md b/README.md index b86babd..c7b1da3 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,5 @@ It runs on flask. It's kinda messy! This is one project I'm working on strictly for results - I just want to post stuff as easily as possible, with as little hassle as possible (but avoiding having to use PHP). There might be some slightly-more-complicated stuff in here using blueprints or subapplications, so that I can extend things! It's not done, though. Poke. Poke. + +I made a service file for use with systemd finally! It'll make it so that it'll automatically start when the server starts. diff --git a/articles/article.template.html b/articles/article.template.html index 77741ec..fb094a0 100644 --- a/articles/article.template.html +++ b/articles/article.template.html @@ -4,7 +4,7 @@ {% block head %} {% block title %}Writings by Shoofle{% endblock %} - + diff --git a/auriga.service b/auriga.service new file mode 100644 index 0000000..9018da8 --- /dev/null +++ b/auriga.service @@ -0,0 +1,13 @@ +[Unit] +Description=The Auriga Webserver +After=network.target + +[Service] +User=mrserver +WorkingDirectory=/home/shoofle/auriga +ExecStart=authbind gunicorn -b shoofle.net:80 pure_flask:app +Restart=always + +[Install] +WantedBy=multi-user.target + diff --git a/gunicorn_server_start b/gunicorn_server_start index 02b8a00..c93aed3 100755 --- a/gunicorn_server_start +++ b/gunicorn_server_start @@ -1 +1 @@ -sudo -u mrserver authbind gunicorn -b li60-203.members.linode.com:80 pure_flask:app +sudo -u mrserver authbind gunicorn -b shoofle.net:80 pure_flask:app