diff --git a/hw27/bitbucket-pipelines.yml b/hw27/bitbucket-pipelines.yml new file mode 100644 index 000000000..7efe25efe --- /dev/null +++ b/hw27/bitbucket-pipelines.yml @@ -0,0 +1,11 @@ +image: atlassian/default-image:latest + +pipelines: + branches: + master: + - step: + name: deploy + script: + - echo "Deploy process started" + - cat ./deploy.sh | ssh $USER@$SERVER -p$PORT + - echo "Deploy process finished" diff --git a/hw27/deploy.sh b/hw27/deploy.sh new file mode 100644 index 000000000..5f38d9de3 --- /dev/null +++ b/hw27/deploy.sh @@ -0,0 +1,10 @@ +#let\'s assume that application is already installed, just pull changes +php artisan down # put application in maintenance mode +git pull origin master +composer update +php artisan cache:clear +php artisan config:cache +php artisan route:cache +php artisan migrate +php artisan up +php artisan queue:work