Running bash on heroku won't work

前端 未结 3 1786
北恋
北恋 2021-01-01 03:54

I am trying to run bash on heroku to test it out and it is failing

 $ heroku run bash
 ▸    Error: No app specified
 ▸    Usage: heroku run --ap         


        
相关标签:
3条回答
  • 2021-01-01 04:13

    Try this command:

    heroku pg:psql -a appname
    
    0 讨论(0)
  • 2021-01-01 04:23

    I think you have two issues.

    Firstly, you need to run bash within some app. You can either specify the app via the --app key as the help actually says or you can run this command inside the folder which has a heroku app initialized already. For connecting the folder to a heroku app - see this answer How to link a folder with an existing Heroku app.

    Second, running a bash actually takes away one dyno from your app. So you need to have at least one dyno.

    0 讨论(0)
  • 2021-01-01 04:32

    Try run commands:

    First you need to login, then you to see your apps and finally run bash

    $heroku login
    

    Insert you user and password

    $heroku apps
    === user@gmail.com Apps
    myaplication
    

    then look at the list aps and write

    $heroku run bash --app myaplication 
    
    0 讨论(0)
提交回复
热议问题