Adds Webserver service

This commit is contained in:
Patrick McDonagh
2017-05-25 15:05:28 -05:00
parent 4a8d440bae
commit c8c7e4d59c
2 changed files with 10 additions and 1 deletions

2
run.py
View File

@@ -1,5 +1,5 @@
from app import app
import ssl
# import ssl
# context = ssl.SSLContext(protocol=ssl.PROTOCOL_TLSv1_2)
# context.load_cert_chain('/Users/patrickjmcd/Henry_Pump/tagserver/web_db/flask/app/hplumberjack.crt', '/Users/patrickjmcd/Henry_Pump/tagserver/web_db/flask/app/hplumberjack.key')

9
webserver.service Normal file
View File

@@ -0,0 +1,9 @@
[Unit]
Description=Datalogger Web Server
After=syslog.target network.target
[Service]
ExecStart=/root/www/start.sh
[Install]
WantedBy=multi-user.target