mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-03-28 19:49:25 +01:00
24 lines
580 B
Bash
24 lines
580 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
echo "Starting entrypoint script..."
|
|
|
|
# Ensure required storage directories exist (volume may be freshly mounted)
|
|
mkdir -p /app/storage/logs /app/storage/kb_uploads
|
|
|
|
# Run AdonisJS migrations
|
|
echo "Running AdonisJS migrations..."
|
|
node ace migration:run --force
|
|
|
|
# Seed the database if needed
|
|
echo "Seeding the database..."
|
|
node ace db:seed
|
|
|
|
# Start background workers for all queues
|
|
echo "Starting background workers for all queues..."
|
|
node ace queue:work --all &
|
|
|
|
# Start the AdonisJS application
|
|
echo "Starting AdonisJS application..."
|
|
exec node bin/server.js |