mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-29 18:59:20 +01:00
23 lines
565 B
Bash
23 lines
565 B
Bash
# Run migrations
|
|
node ./db/migrations/$DB_DIALECT/migrate.cjs ./db/migrations/$DB_DIALECT
|
|
|
|
# Start nginx proxy
|
|
# 1. Replace the HOSTNAME in the nginx template file
|
|
# 2. Create the nginx configuration file from the template
|
|
# 3. Start the nginx server
|
|
envsubst '${HOSTNAME}' < /etc/nginx/templates/nginx.conf > /etc/nginx/nginx.conf
|
|
nginx -g 'daemon off;' &
|
|
|
|
# Start Redis
|
|
redis-server /app/redis.conf &
|
|
|
|
# Run the tasks backend
|
|
node apps/tasks/tasks.cjs &
|
|
|
|
node apps/websocket/wssServer.cjs &
|
|
|
|
# Run the nextjs server
|
|
node apps/nextjs/server.js & PID=$!
|
|
|
|
wait $PID
|