Muhammed Bhikha
Muhammed Bhikha

Reputation: 5019

heroku : run rake db:migrate error

Running `rake db:migrate` attached to terminal... failed
 !    Multiple apps in folder and no app specified.
 !    Specify app with --app APP.

I get the above error in my terminal when I try to run rake db:migrate can anyone please help?

Upvotes: 2

Views: 1436

Answers (2)

TalkativeTree
TalkativeTree

Reputation: 619

I've had this problem crop up where it wasn't related to heroku at at. If you really want to see, open up your .git/config file

For example, I was with staging and found I had the 2nd remote. Deleting this from my .git/config file fixed everything.

[remote "staging"]
    url = [email protected]:site-stage.git
    fetch = +refs/heads/*:refs/remotes/staging/*

Upvotes: 0

janders223
janders223

Reputation: 3153

As the error clearly states, you need to specify which app you wish to run the command for. If you are inside of the project directory, you shouldn't need to specify the app. If you are outside of your projects folder run the command like so:

heroku run rake db:migrate --app <your-app-name>

Upvotes: 11

Related Questions