Skip to content

Commit

Permalink
update deploy.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
liweiyi88 committed Apr 6, 2017
1 parent 4dddf72 commit 556fc86
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@
# Default value for keep_releases is 5
# set :keep_releases, 5

namespace :deploy do
task :migrate do
invoke 'symfony:console', 'doctrine:migrations:migrate', '--no-interaction'
end
namespace :symfony do
namespace :doctrine do
task :migrate do
invoke 'symfony:console', 'doctrine:migrations:migrate', '--no-interaction'
end
end
before 'cache:warmup', 'symfony:doctrine:migrate'
end

0 comments on commit 556fc86

Please sign in to comment.