Skip to content

Instantly share code, notes, and snippets.

@grvoyt
Created April 26, 2019 07:03
Show Gist options
  • Save grvoyt/88fc5dd37026ab884e31f016ec13d4e9 to your computer and use it in GitHub Desktop.
Save grvoyt/88fc5dd37026ab884e31f016ec13d4e9 to your computer and use it in GitHub Desktop.
CI
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