[Draft] Implement Early deletion by Submitter #37 #38
3 changed files with 29 additions and 4 deletions
fix prod script
commit
ae09f54411
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,3 +1,3 @@
|
|||
/target
|
||||
/job_offers/**
|
||||
/packages/jobboerse/job_offers/**
|
||||
/THIRDPARTY.toml.bak
|
||||
|
|
|
|||
16
scripts/dev.sh
Normal file → Executable file
16
scripts/dev.sh
Normal file → Executable 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
15
scripts/prod.sh
Normal file → Executable 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue