Skip to content

Commit

Permalink
Merge pull request onema#4 from onema/develop
Browse files Browse the repository at this point in the history
adding doctrine  mongodb update to update indexes
  • Loading branch information
onema committed Oct 30, 2013
2 parents 486df6f + c5bf429 commit f3adc97
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions symfony/recipes/mongodb_update.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#
# Doctrine MongoDB database migration.
#
node[:deploy].each do |application, deploy|
script "run_migration" do
interpreter "bash"
user "root"
cwd "#{deploy[:deploy_to]}/current"
code <<-EOH
php app/console doctrine:mongodb:schema:update
EOH
end
end

0 comments on commit f3adc97

Please sign in to comment.