set package-mode, source .env, gitignore .env

This commit is contained in:
Chris Oloff 2026-01-14 18:35:39 +02:00
parent 70a2910b74
commit 9dbdd2b815
3 changed files with 7 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.env

View file

@ -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
View file

@ -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"