Compare commits
2 Commits
1ac6826099
...
f986e72982
Author | SHA1 | Date | |
---|---|---|---|
f986e72982 | |||
339fe5ce24 |
@ -1,9 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
chmod 777 cache
|
chmod 777 cache
|
||||||
|
|
||||||
echo "Installing Composer packages..."
|
echo "Installing Composer packages..."
|
||||||
composer create-project --dev
|
if [ -f .env ]; then
|
||||||
|
composer install
|
||||||
|
else
|
||||||
|
composer create-project
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Installing NPM packages..."
|
echo "Installing NPM packages..."
|
||||||
(cd multi && npm install)
|
(cd multi && npm install)
|
||||||
@ -14,6 +20,8 @@ echo "Installing Yarn packages..."
|
|||||||
echo "Migrating DB..."
|
echo "Migrating DB..."
|
||||||
./mapg db:migrate
|
./mapg db:migrate
|
||||||
|
|
||||||
|
set +e
|
||||||
|
|
||||||
/usr/sbin/php-fpm7.4 -F &
|
/usr/sbin/php-fpm7.4 -F &
|
||||||
/usr/sbin/nginx -g 'daemon off;' &
|
/usr/sbin/nginx -g 'daemon off;' &
|
||||||
/usr/bin/node --inspect=0.0.0.0:9229 multi &
|
/usr/bin/node --inspect=0.0.0.0:9229 multi &
|
||||||
|
@ -1,8 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
echo "Migrating DB..."
|
echo "Migrating DB..."
|
||||||
./mapg db:migrate
|
./mapg db:migrate
|
||||||
|
|
||||||
|
set +e
|
||||||
|
|
||||||
/usr/bin/crontab docker/scripts/cron && /usr/sbin/cron &
|
/usr/bin/crontab docker/scripts/cron && /usr/sbin/cron &
|
||||||
/usr/sbin/php-fpm7.4 -F &
|
/usr/sbin/php-fpm7.4 -F &
|
||||||
/usr/sbin/nginx -g 'daemon off;' &
|
/usr/sbin/nginx -g 'daemon off;' &
|
||||||
|
Loading…
Reference in New Issue
Block a user