Skip to content

Instantly share code, notes, and snippets.

@skinofstars
Last active December 24, 2015 00:09
Show Gist options
  • Save skinofstars/6714637 to your computer and use it in GitHub Desktop.
Save skinofstars/6714637 to your computer and use it in GitHub Desktop.
deploy cold override for db migrations
namespace :deploy do
desc "Override deploy:cold to include database setup"
task :cold do
before :run_migrations do
capifony_pretty_print "--> Creating database"
run "#{release_path}/app/console mygreatdbcommand:database:create-once"
capifony_puts_ok
end
update
start
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment