better scripts
This commit is contained in:
11
images/init_laravel.sh
Normal file
11
images/init_laravel.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
composer install
|
||||
|
||||
# Create .env if it does not exist
|
||||
if ! [ -e ".env" ] ; then
|
||||
cp /init/.env .
|
||||
php artisan key:generate
|
||||
fi
|
||||
|
||||
php artisan migrate --force
|
||||
php artisan serve --host=0.0.0.0 --port=8000
|
||||
Reference in New Issue
Block a user