Created
April 26, 2019 07:03
-
-
Save grvoyt/88fc5dd37026ab884e31f016ec13d4e9 to your computer and use it in GitHub Desktop.
CI
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
chown -R www-data:staff ./ | |
sudo find ./ -type f -not -path "./vendor/*" -print0 | xargs -0 sudo chmod 644 | |
sudo find ./ -type d -not -path "./vendor/*" -print0 | xargs -0 sudo chmod 755 | |
cp -n .env.example .env | |
cd docker | |
cp -n .env-example .env | |
source .env | |
docker-compose build | |
docker-compose up -d | |
docker-compose exec -T app sh -c 'composer install' && docker-compose exec -T app sh -c 'php artisan migrate' && docker-compose exec -T worker sh -c 'php artisan queue:restart' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment