Updated files for docker
This commit is contained in:
20
config/docker/dev/laravel/install.sh
Executable file
20
config/docker/dev/laravel/install.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ ! -d "vendor" ] && [ -f "composer.json" ]; then
|
||||
echo ""
|
||||
echo "########################################"
|
||||
echo "# vendor directory not found... #"
|
||||
echo "########################################"
|
||||
composer install
|
||||
fi
|
||||
|
||||
if [ ! -d "node_modules" ] && [ -f "package.json" ]; then
|
||||
echo ""
|
||||
echo "########################################"
|
||||
echo "# node_modules directory not found... #"
|
||||
echo "########################################"
|
||||
npm install
|
||||
npm run dev
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user