Skip to content
afunction edited this page Oct 2, 2014 · 2 revisions

db (role: :app)

It depends on preconfig recipe, by default, you have to put the production database.yml in preconfig/ of your project.

Source: https://github.com/afunction/visionbundles/blob/master/lib/visionbundles/recipes/secret.rb

dev (role: :app)

This task provide a command cap dev:build, it will invoke tasks tmp:clear log:clear db:drop db:create db:migrate db:seed on the server (same server which runs db:migrate).

This command will show a prompt box to confirm that you really want to do it.

Source: https://github.com/afunction/visionbundles/blob/master/lib/visionbundles/recipes/dev.rb