Skip to content
New issue

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

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

Already on GitHub? # to your account

Don't know how to build task 'rake:db_migrate' #536

Closed
wonderer007 opened this issue Apr 27, 2017 · 2 comments
Closed

Don't know how to build task 'rake:db_migrate' #536

wonderer007 opened this issue Apr 27, 2017 · 2 comments

Comments

@wonderer007
Copy link

I am getting following error

Don't know how to build task 'rake:db_migrate'

and my deploy.rb look like this

desc "Deploys the current version to the server."
task :deploy do
  # uncomment this line to make sure you pushed your local branch to the remote origin
  # invoke :'git:ensure_pushed'
  deploy do
    # Put things that will set up an empty directory into a fully set-up
    # instance of your project.
    invoke :'git:clone'
    invoke :'deploy:link_shared_paths'
    invoke :'bundle:install'
    invoke :'rake:db_migrate'
    invoke :'rake:assets_precompile'
    invoke :'deploy:cleanup'

    on :launch do
      invoke :'puma:phased_restart' 
    end

  end

  # you can use `run :local` to run tasks on local machine before of after the deploy scripts
  # run :local { say 'done' }
end

The root cause of the error is this line
invoke :'rake:db_migrate'

Any suggestion please
Thanks

@adam12
Copy link

adam12 commented May 17, 2017

Presuming you're requiring mina/rails somewhere in your deploy.rb file before invoking these tasks, the correct names for them are rails:db_migrate and rails:assets_precompile.

@d4be4st
Copy link
Member

d4be4st commented Sep 8, 2017

there is no rake:db_migrate mina task

there is rails:db_migrate and rails:assets_precompile

@d4be4st d4be4st closed this as completed Sep 8, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants