Created
April 8, 2016 13:33
-
-
Save AKovalevich/20d83c3b0401eeda447f9db6b2c3ae19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# sudo ./init.sh [Directory] [MySQL Host] [MySQL User] [MySQL Password] [MySQL Database name] | |
curl -sS https://getcomposer.org/installer | sudo php — —install-dir=/usr/local/bin —filename=composer | |
if [ ! -d "$1" ]; then | |
echo 'Directory do not exist.'; | |
exit 1 | |
fi | |
chmod +x $1 -R | |
cd $1; | |
git clone https://github.com/AKovalevich/serials.git | |
cd serials/ | |
rm .env | |
echo " | |
APP_ENV=local | |
APP_DEBUG=true | |
APP_KEY=secret | |
DB_CONNECTION=mysql | |
DB_CONNECTION=mysql | |
DB_HOST=$2 | |
DB_DATABASE=$5 | |
DB_USERNAME=$3 | |
DB_PASSWORD | |
FILESYSTEM_DRIVER=local | |
CACHE_DRIVER=array | |
QUEUE_DRIVER=sync | |
API_STANDARDS_TREE=x | |
API_SUBTYPE=logs | |
API_PREFIX=api/1.0 | |
API_VERSION=v1 | |
API_NAME="Logs API" | |
API_DEFAULT_FORMAT=json | |
JWT_SECRET=secret | |
" » .env | |
php composer update | |
php artisan migrate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment