This commit is contained in:
philipp 2023-07-30 16:10:56 +02:00
parent a901d237aa
commit eca9884b40
2 changed files with 17 additions and 2 deletions

View File

@ -6,6 +6,7 @@ variables:
before_script:
- rustup target add $CARGO_TARGET
- apt-get update -qq && apt-get install -y -qq sshpass musl musl-tools
- apt update && apt install -y sqlite3 && ./test_db.sh
build:
stage: build
@ -20,8 +21,6 @@ test:
stage: test
image: rust:latest
script:
- apt update && apt install -y sqlite3 && ./test_db.sh
- cargo build --verbose
- cargo test --verbose
deploy:

16
rotstaging.service Normal file
View File

@ -0,0 +1,16 @@
[Unit]
Description=Rot Staging
[Service]
User=root
Group=root
WorkingDirectory=/home/k004373/rowing-staging
Environment="ROCKET_ENV=prod"
Environment="ROCKET_ADDRESS=127.0.0.1"
Environment="ROCKET_PORT=7999"
Environment="ROCKET_LOG=info"
ExecStart=./rot
[Install]
WantedBy=multi-user.target