24 lines
398 B
Bash
24 lines
398 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
chmod 777 cache
|
||
|
|
||
|
echo "Installing Composer packages..."
|
||
|
composer create-project --dev
|
||
|
|
||
|
echo "Installing NPM packages..."
|
||
|
(cd multi && npm install)
|
||
|
|
||
|
echo "Installing Yarn packages..."
|
||
|
(cd public/static && yarn install)
|
||
|
|
||
|
echo "Migrating DB..."
|
||
|
./mapg db:migrate
|
||
|
|
||
|
/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 $?
|