add readme and systemd service

This commit is contained in:
Jeremy D. Berkleef 2020-05-28 02:41:05 +00:00
parent acbc7dd336
commit 0cd919333c
4 changed files with 33 additions and 0 deletions

BIN
core Normal file

Binary file not shown.

11
readme.md Normal file
View File

@ -0,0 +1,11 @@
- Houtmarkt Inventarisatie en Factuur Systeem
*Install Instructions*
-- Install python3, python3-devel and pip3
-- Pip install django uwsgi
-- Git Clone this repo
-- Edit the paths in systemd-files/houtmarkt-uwsgi.service
-- Copy the service file to /etc/systemd/system/
-- Create user www-houtmarkt and group www-data, add www-houtmarkt to www-data
-- ???
-- Profit

View File

@ -0,0 +1,18 @@
[Install]
WantedBy=multi-user.target
[Unit]
Description=Houtmarkt app uWSGI service
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=/usr/local/bin/uwsgi \
--ini /houtmarkt-jeremy/uwsgi/houtmarkt.ini
User=www-houtmarkt
Group=www-data
Restart=on-failure
KillSignal=SIGQUIT
Type=notify
StandardError=syslog
NotifyAccess=all

4
uwsgi/houtmarkt.ini Normal file
View File

@ -0,0 +1,4 @@
[uwsgi]
chdir = /houtmarkt-jeremy/
http-socket = :8080
wsgi-file = houtmarkt/wsgi.py