Compare commits

...

2 Commits

2 changed files with 13 additions and 1 deletions

View File

@ -1,9 +1,15 @@
#!/bin/bash
set -e
chmod 777 cache
echo "Installing Composer packages..."
composer create-project --dev
if [ -f .env ]; then
composer install
else
composer create-project
fi
echo "Installing NPM packages..."
(cd multi && npm install)
@ -14,6 +20,8 @@ echo "Installing Yarn packages..."
echo "Migrating DB..."
./mapg db:migrate
set +e
/usr/sbin/php-fpm7.4 -F &
/usr/sbin/nginx -g 'daemon off;' &
/usr/bin/node --inspect=0.0.0.0:9229 multi &

View File

@ -1,8 +1,12 @@
#!/bin/bash
set -e
echo "Migrating DB..."
./mapg db:migrate
set +e
/usr/bin/crontab docker/scripts/cron && /usr/sbin/cron &
/usr/sbin/php-fpm7.4 -F &
/usr/sbin/nginx -g 'daemon off;' &