From 4d53bdb724db91789fd61b92fe5c4fcfb999e7d8 Mon Sep 17 00:00:00 2001 From: philipp Date: Sun, 30 Jul 2023 16:10:56 +0200 Subject: [PATCH] push --- .gitlab-ci.yml | 3 +-- rotstaging.service | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 rotstaging.service diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index edb4340..2f72f81 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: diff --git a/rotstaging.service b/rotstaging.service new file mode 100644 index 0000000..8091a14 --- /dev/null +++ b/rotstaging.service @@ -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 +