Add systemd services used in prod
This commit is contained in:
parent
7603f00bd5
commit
f82ba23c5d
16
API/skantravels.service
Normal file
16
API/skantravels.service
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Skantravels .NET
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Environment=DOTNET_ROOT=/home/reimar/.dotnet
|
||||||
|
Environment=PATH=$PATH:/home/reimar/.dotnet
|
||||||
|
Environment=DEFAULT_CONNECTION="Data Source=/home/reimar/skantravels/database.sqlite3"
|
||||||
|
ExecStartPre=/home/reimar/skantravels/efbundle
|
||||||
|
ExecStart=/home/reimar/skantravels/API --urls=http://0.0.0.0:5001
|
||||||
|
Type=simple
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
RequiredBy=network.target
|
||||||
|
|
14
rust-backend/skantravels-rust.service
Normal file
14
rust-backend/skantravels-rust.service
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Skantravels Rust
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Environment=RUST_BACKEND_PORT=5002
|
||||||
|
Environment=RUST_BACKEND_DB=/home/reimar/skantravels/database-rust.sqlite3
|
||||||
|
ExecStart=/home/reimar/skantravels/skantravels
|
||||||
|
Type=simple
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
RequiredBy=network.target
|
||||||
|
|
Loading…
Reference in New Issue
Block a user