No description
Find a file
ahoemann c2bb0cc6cc
All checks were successful
/ update (push) Successful in 0s
fix: config
2024-12-12 08:13:46 +01:00
.forgejo/workflows add: service restart 2024-11-28 09:27:04 +00:00
static/css add: content 2024-11-28 12:08:48 +01:00
templates add: monitoring page to list of pages 2024-12-02 11:35:08 +00:00
.gitignore feat: templates 2024-11-15 08:26:13 +01:00
adrianux.toml fix: config 2024-12-12 08:13:46 +01:00
app.py add: config-parser; fix: offline status internal server error 2024-12-12 08:11:13 +01:00
Dockerfile add: dockerfile 2024-12-06 08:09:40 +01:00
LICENSE add: license 2024-11-12 15:52:22 +00:00
README.md remove: unused variable; fix: debug mode off 2024-12-05 12:44:54 +01:00
requirements.txt remove: conflict 2024-12-05 12:58:02 +01:00

Installation

Setting up the environment

  1. Create a virtual environment:
python3 -m venv .venv
  1. Activate the virtual environment:
. .venv/bin/activate
  1. Install dependencies:
pip install requirements.txt
# /etc/systemd/system/adrianux.service
[Unit]
Description=WSGI app
After=network.target

[Service]
Type=simple
User=adrianux
WorkingDirectory=/opt/Adrianux.net
ExecStart=/opt/Adrianux.net/.venv/bin/waitress-serve --listen=127.0.0.1:8080 app:app
Restart=always

[Install]
WantedBy=multi-user.target