diff --git a/core b/core new file mode 100644 index 0000000..b196a16 Binary files /dev/null and b/core differ diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..e8aa8f1 --- /dev/null +++ b/readme.md @@ -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 diff --git a/systemd-files/houtmarkt-uwgsi.service b/systemd-files/houtmarkt-uwgsi.service new file mode 100644 index 0000000..98bb0f5 --- /dev/null +++ b/systemd-files/houtmarkt-uwgsi.service @@ -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 diff --git a/uwsgi/houtmarkt.ini b/uwsgi/houtmarkt.ini new file mode 100644 index 0000000..7d3a22e --- /dev/null +++ b/uwsgi/houtmarkt.ini @@ -0,0 +1,4 @@ +[uwsgi] +chdir = /houtmarkt-jeremy/ +http-socket = :8080 +wsgi-file = houtmarkt/wsgi.py