Skip to content

Commit

Permalink
Configure deployment settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Serious-senpai committed Sep 16, 2024
1 parent c0d8ec7 commit 6f32681
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .deployment
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[config]
command = scripts/startup.sh
7 changes: 2 additions & 5 deletions scripts/startup.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#! https://stackoverflow.com/a/246128
SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
ROOT_DIR=$(realpath $SCRIPT_DIR/..)

pip install -r $ROOT_DIR/requirements.txt
python $ROOT_DIR/main.py
pip install -r $DEPLOYMENT_SOURCE/requirements.txt
python $DEPLOYMENT_SOURCE/main.py

0 comments on commit 6f32681

Please sign in to comment.