push
This commit is contained in:
parent
6831ac00b7
commit
4d53bdb724
@ -6,6 +6,7 @@ variables:
|
|||||||
before_script:
|
before_script:
|
||||||
- rustup target add $CARGO_TARGET
|
- rustup target add $CARGO_TARGET
|
||||||
- apt-get update -qq && apt-get install -y -qq sshpass musl musl-tools
|
- apt-get update -qq && apt-get install -y -qq sshpass musl musl-tools
|
||||||
|
- apt update && apt install -y sqlite3 && ./test_db.sh
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
@ -20,8 +21,6 @@ test:
|
|||||||
stage: test
|
stage: test
|
||||||
image: rust:latest
|
image: rust:latest
|
||||||
script:
|
script:
|
||||||
- apt update && apt install -y sqlite3 && ./test_db.sh
|
|
||||||
- cargo build --verbose
|
|
||||||
- cargo test --verbose
|
- cargo test --verbose
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
|
16
rotstaging.service
Normal file
16
rotstaging.service
Normal 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user