Add extracted tools: CitrineOS, OpenOCPP, ShapeShifter
- CitrineOS core extracted (CSMS OCPP 2.0.1) - OpenOCPP extracted (firmware OCPP 1.6J/2.0.1) - ShapeShifter library installed (pip install -e) - ShapeShifter specification extracted - EVerest extracted TODO updated with progress
This commit is contained in:
20
tools/citrineos-core-main/apps/Server/entrypoint.sh
Executable file
20
tools/citrineos-core-main/apps/Server/entrypoint.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Default to migrate if DB_STRATEGY is not set
|
||||
DB_STRATEGY=${DB_STRATEGY:-migrate}
|
||||
|
||||
echo "Executing DB strategy: $DB_STRATEGY"
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
|
||||
if [ "$DB_STRATEGY" = "migrate" ]; then
|
||||
(cd "$SCRIPT_DIR" && pnpm run migrate)
|
||||
else
|
||||
echo "Unknown DB_STRATEGY: $DB_STRATEGY. Defaulting to migrate."
|
||||
(cd "$SCRIPT_DIR" && pnpm run migrate)
|
||||
fi
|
||||
|
||||
echo "Starting application..."
|
||||
exec node "$SCRIPT_DIR/dist/index.js"
|
||||
|
||||
Reference in New Issue
Block a user