13 lines
362 B
Bash
13 lines
362 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
# Start PHP-FPM service
|
|
service php8.4-fpm start
|
|
|
|
# Change to frontend directory and start npm in background
|
|
cd /var/www/html/frontend && export REACT_APP_API_URL=https://calendi.strolap.com && npm run start &
|
|
|
|
cd /var/www/html/backend && composer rebuild-db
|
|
|
|
# Start Nginx in foreground to keep container running
|
|
exec nginx -g 'daemon off;' |