This commit is contained in:
parent
4f73502d00
commit
e9b32af7c7
1 changed files with 9 additions and 14 deletions
23
README.md
23
README.md
|
@ -18,20 +18,15 @@ python3 -m venv .venv
|
|||
pip install requirements.txt
|
||||
```
|
||||
|
||||
```systemd
|
||||
# /etc/systemd/system/adrianux.service
|
||||
[Unit]
|
||||
Description=WSGI app
|
||||
After=network.target
|
||||
## Building the container
|
||||
|
||||
[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
|
||||
```
|
||||
# <runtime> build -t adrianux:<tag> .
|
||||
```
|
||||
|
||||
|
||||
## Running the container
|
||||
|
||||
```
|
||||
# <runtime> run adrianux:<tag>
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue