Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where to properly invoke rails:db_migrate? #323

Closed
postmodern opened this issue Jun 24, 2015 · 1 comment
Closed

Where to properly invoke rails:db_migrate? #323

postmodern opened this issue Jun 24, 2015 · 1 comment

Comments

@postmodern
Copy link
Contributor

The rails:db_migrate task uses current_path!, but current/ will still point to the previous deploy until the deploy task re-symlinks current/.

@d4be4st
Copy link
Member

d4be4st commented Jul 5, 2015

The rails taksk are meant to be invoked inside deploy scripts as stated here: https://github.com/mina-deploy/mina/blob/master/lib/mina/rails.rb#L128

So you wont be able to run those with

mina rails:db_migrate

you can always do

mina 'rake[db:migrate]'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants