mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2026-03-26 18:22:08 -04:00
Add compose-dev.yml file and update startup.sh script
This commit is contained in:
13
compose-dev.yml
Normal file
13
compose-dev.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
- DATABASE_URL=
|
||||
# ORIGIN is only necessary when not using a reverse proxy or hosting that includes https
|
||||
- ORIGIN=http://localhost:3000
|
||||
- SKIP_DB_WAIT=true
|
||||
# Only necessary for externaly hosted databases such as NeonDB
|
||||
volumes:
|
||||
- ./sql:/sql
|
||||
@@ -29,10 +29,9 @@ run_sql_scripts() {
|
||||
echo "Starting AdventureLog"
|
||||
|
||||
# Wait for the database to start up
|
||||
if (!$SKIP_DB_WAIT); then
|
||||
if [ -z "$SKIP_DB_WAIT" ] || [ "$SKIP_DB_WAIT" = "false" ]; then
|
||||
wait_for_db
|
||||
fi
|
||||
wait_for_db
|
||||
|
||||
# generate the schema
|
||||
# npm run generate
|
||||
|
||||
Reference in New Issue
Block a user