cloned project from github. heroku does not work

后端 未结 4 1179
攒了一身酷
攒了一身酷 2021-01-30 01:53

I cloned a project from github over to my desktop. I used to work on it form my laptop.

However, on laptop heroku does not seem to work for this app eventhough i have i

4条回答
  •  悲哀的现实
    2021-01-30 02:11

    I believe I get the error No app specified. Run this command from an app folder or specify which app to use with --app when I run any ambiguous heroku commands. Example:

    heroku logs
    

    It's ambiguous because I have multiple remote repositories specified in my project's .git/config file. The solution for me is simply to specify the remote repository. Example:

    heroku logs --remote staging
    

    In the above line --remote staging corresponds to the following in my project's .git/config file:

    [remote "staging"]
        url = git@heroku.accountname:foo-bar-1234.git
        fetch = +refs/heads/*:refs/remotes/staging/*
    

    I hope this helps you.. if not, then perhaps it may help someone else!

提交回复
热议问题