add readme and systemd service
This commit is contained in:
parent
acbc7dd336
commit
0cd919333c
11
readme.md
Normal file
11
readme.md
Normal 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
|
18
systemd-files/houtmarkt-uwgsi.service
Normal file
18
systemd-files/houtmarkt-uwgsi.service
Normal 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
4
uwsgi/houtmarkt.ini
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[uwsgi]
|
||||||
|
chdir = /houtmarkt-jeremy/
|
||||||
|
http-socket = :8080
|
||||||
|
wsgi-file = houtmarkt/wsgi.py
|
Loading…
Reference in New Issue
Block a user