refactor: restore root layout and split mysql config
This commit is contained in:
17
tools/container_start.sh
Normal file
17
tools/container_start.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
cd /app
|
||||
|
||||
sh tools/init_runtime_data.sh
|
||||
|
||||
python3 tools/device_mapper.py build
|
||||
python3 tools/export_mysql_seed.py
|
||||
|
||||
if [ "${MYSQL_AUTO_LOAD:-0}" = "1" ]; then
|
||||
python3 tools/load_mysql_seed.py
|
||||
else
|
||||
echo "Skipping MySQL load because MYSQL_AUTO_LOAD=${MYSQL_AUTO_LOAD:-0}"
|
||||
fi
|
||||
|
||||
exec python3 tools/web_server.py --host 0.0.0.0 --port 8123
|
||||
Reference in New Issue
Block a user