[Draft] Implement Early deletion by Submitter #37 #38

Merged
ben merged 15 commits from ben/Jobboerse:main into main 2023-01-28 18:00:00 +01:00
3 changed files with 29 additions and 4 deletions
Showing only changes of commit ae09f54411 - Show all commits

fix prod script

Bennet Bleßmann 2023-01-28 13:50:59 +01:00 committed by Bennet Bleßmann
Signed by: ben
GPG key ID: 3BE1A1A3CBC3CF99

2
.gitignore vendored
View file

@ -1,3 +1,3 @@
/target
/job_offers/**
/packages/jobboerse/job_offers/**
/THIRDPARTY.toml.bak

16
scripts/dev.sh Normal file → Executable file
View file

@ -2,5 +2,17 @@
#RUST_BACKTRACE=1
systemfd --no-pid -s http::8080 -- \
cargo watch -i ./packages/jobboerse/config/dev-config.toml -x 'run --package jobboerse --bin jobboerse --release --features=dev_mode -- --config=./packages/jobboerse/config/dev-config.toml --mode=development'
DIR=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
CFG="${DIR}/../packages/jobboerse/config/dev-config.toml"
RUN_DIR="${DIR}/../packages/jobboerse"
pushd "${RUN_DIR}"
systemfd \
--no-pid \
-s http::8080 \
-- cargo watch \
-i ./packages/jobboerse/config/dev-config.toml \
-x "run --package jobboerse --bin jobboerse --release --features=dev_mode -- --config=\"${CFG}\" --mode=development"
popd

15
scripts/prod.sh Normal file → Executable file
View file

@ -1,3 +1,16 @@
#!/bin/bash
cargo run --package jobboerse --bin jobboerse --release --config=./packages/jobboerse/config/prod-config.toml
DIR=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
CFG="${DIR}/../packages/jobboerse/config/prod-config.toml"
RUN_DIR="${DIR}/../packages/jobboerse"
pushd "${RUN_DIR}"
cargo run \
--package jobboerse \
--bin jobboerse \
--release \
-- \
--config "${CFG}"
popd