Browse Source

add some meme tasks

merge-requests/1/head
Vincent Canfield 4 years ago
parent
commit
438dc8ffc2
1 changed files with 16 additions and 1 deletions
  1. 16
    1
      config/deploy.rb

+ 16
- 1
config/deploy.rb View File

@@ -39,11 +39,26 @@ namespace :deploy do

after :updated, :composer do
on roles(:web), in: :groups, limit: 3, wait: 10 do
# Here we can do anything such as:
within release_path do
execute :composer, :install
end
end
end

after :updated, :db_backup do
on roles(:web), in: :groups, limit: 3, wait: 10 do
within release_path do
execute :mysqldump, :mail, "-r ~/mail.sql"
end
end
end

after :db_backup, :migrate do
on roles(:web), in: :groups, limit: 3, wait: 10 do
within release_path do
execute :php, :artisan, :migrate, "--force"
end
end
end

end

Loading…
Cancel
Save