mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
1418957b6f
- resolve all 69 client type-checking errors for stricter TS compliance - remove obsolete type-check baseline scripts and files - overhaul project root with updated README.md and new DEVELOPMENT.md - migrate to unified baseline migration strategy and cleanup docker configs - remove redundant production and dev-specific shell scripts
13 lines
334 B
Bash
13 lines
334 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
if [ -z "$DATABASE_URL" ]; then
|
|
export DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST:-postgres}:${POSTGRES_PORT:-5432}/${POSTGRES_DB}"
|
|
fi
|
|
|
|
export BOOKS_PATH="${BOOKS_PATH:-/data}"
|
|
export STAGING_PATH="${STAGING_PATH:-/staging}"
|
|
|
|
node dist/scripts/migrate.js
|
|
exec node dist/main.js
|