set package-mode, source .env, gitignore .env
This commit is contained in:
parent
70a2910b74
commit
9dbdd2b815
3 changed files with 7 additions and 0 deletions
5
run.sh
5
run.sh
|
|
@ -4,6 +4,11 @@ echo "Starting the application..."
|
|||
|
||||
PORT=5050
|
||||
|
||||
# source .env file if it exists
|
||||
if [ -f .env ]; then
|
||||
export $(grep -v '^#' .env | xargs)
|
||||
fi
|
||||
|
||||
cleanup() {
|
||||
echo "Stopping the application..."
|
||||
pkill -f "panel serve main.py"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue