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
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
.env
|
||||
|
|
@ -4,6 +4,7 @@ version = "0.1.0"
|
|||
description = "Watt42 View, a browser-based app to visualize a Watt42 system, and to interact with it"
|
||||
authors = ["Chris Oloff <chris@uber5.com>"]
|
||||
readme = "README.md"
|
||||
package-mode = false
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.12"
|
||||
|
|
|
|||
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