Heroku run console get “Timeout awaiting process”

后端 未结 5 1957
孤街浪徒
孤街浪徒 2020-12-13 05:04

No way to have console wired with Heroku lately:

lsoave@ubuntu:~/rails/github/gitwatcher$ heroku run console
Running console attached to terminal... 
Timeout         


        
5条回答
  •  有刺的猬
    2020-12-13 05:40

    There's a way to bypass this restriction by executing commands you were going to execute with 'heroku run ...' directly as system calls.

    For this heroku command: heroku run rake db:migrate One could make a call in Ruby system("rake db:migrate")

    This call could be done as a result on some HTTP GET request - you better protect by some means, so that it wouldn't be accessible for strangers.

    It's not a nice way - but when you don't have a choice - it works.

提交回复
热议问题