Added the service and set it up for use as shoofle.net

main
Shoofle 4 years ago
parent 8f193e5983
commit 8f2039ab3c
  1. 2
      README.md
  2. 2
      articles/article.template.html
  3. 13
      auriga.service
  4. 2
      gunicorn_server_start

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

@ -4,7 +4,7 @@
{% block head %} {% block head %}
<meta charset="utf-8"> <meta charset="utf-8">
<title>{% block title %}Writings by Shoofle{% endblock %}</title> <title>{% block title %}Writings by Shoofle{% endblock %}</title>
<script src="/static/jquery-2.0.3.js" type="text/javascript"></script> <script src="/static/jquery.min.js" type="text/javascript"></script>
<link href="/static/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css"> <link href="/static/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="/static/bootstrap/css/bootstrap-responsive.css" rel="stylesheet" type="text/css"> <link href="/static/bootstrap/css/bootstrap-responsive.css" rel="stylesheet" type="text/css">
<link href="/static/shoofle.css" rel="stylesheet" type="text/css"> <link href="/static/shoofle.css" rel="stylesheet" type="text/css">

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

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

Loading…
Cancel
Save