Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions hw27/bitbucket-pipelines.yml
Original file line number Diff line number Diff line change
@@ -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"
10 changes: 10 additions & 0 deletions hw27/deploy.sh
Original file line number Diff line number Diff line change
@@ -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