lib/hanzo/modules/deploy.rb in hanzo-0.3 vs lib/hanzo/modules/deploy.rb in hanzo-0.3.1
- old
+ new
@@ -37,10 +37,14 @@
end
def run_migrations
if Dir.exists?('db/migrate')
migration = Hanzo.agree('Run migrations?')
- Hanzo.run "heroku run rake db:migrate --remote #{@env}" if migration
+
+ if migration
+ Hanzo.run "heroku run rake db:migrate --remote #{@env}"
+ Hanzo.run "heroku ps:restart --remote #{@env}"
+ end
end
end
end
end