mapguesser/docker/scripts/entry-point-dev.sh

32 lines
462 B
Bash
Raw Normal View History

2023-09-16 19:36:42 +02:00
#!/bin/bash
set -e
2023-09-16 19:36:42 +02:00
chmod 777 cache
echo "Installing Composer packages..."
if [ -f .env ]; then
composer install
else
composer create-project
fi
2023-09-16 19:36:42 +02:00
echo "Installing NPM packages..."
(cd multi && npm install)
echo "Installing Yarn packages..."
(cd public/static && yarn install)
echo "Migrating DB..."
./mapg db:migrate
set +e
2023-09-16 19:36:42 +02:00
/usr/sbin/php-fpm7.4 -F &
/usr/sbin/nginx -g 'daemon off;' &
/usr/bin/node --inspect=0.0.0.0:9229 multi &
wait -n
exit $?