Right now, I have to run cap deploy and cap deploy:migrations if there are migrations to be run.
how I modify the cap deploy task to run migrations.
Right now, I have to run cap deploy and cap deploy:migrations if there are migrations to be run.
how I modify the cap deploy task to run migrations.
Just add:
to your
config/deploy.rb
.Running
"cap deploy:migrations"
is equivalent to running"cap deploy"
&& subsequently"cap deploy:migrate"
in one command.To view the description for deploy:migrations, just use the -e option:
will give you this output: