feat: add EURUSD.csv data loading on Docker startup
This commit is contained in:
parent
011bea2350
commit
6522f501b6
3 changed files with 132 additions and 1 deletions
11
scripts/startup.sh
Normal file
11
scripts/startup.sh
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
echo "Running database migrations..."
|
||||
# Migrations are run automatically by the app on startup
|
||||
|
||||
echo "Loading initial data if needed..."
|
||||
node /app/scripts/load-initial-data.js
|
||||
|
||||
echo "Starting application..."
|
||||
exec node server.js
|
||||
Loading…
Add table
Add a link
Reference in a new issue