-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Deployment to Heroku error #507
Comments
I haven't used Heroku in years, but looking at the docs:
And the error:
Heroku is a platform to host "node.js apps", but what they actually mean is node.js web APIs. So you push your code, you tell it what script to run and then Heroku will run your code and expects that have a web server up within 60 seconds of launch. The problem is that gekko (stable branch) does not actually run a web server. So after 60 seconds heroku is killing it because it things it was unable to start. The logs show that Gekko started just fine, however after a minute heroku killed it. As for solutions:
|
I am closing this for now! Consider Heroku unsupported until the UI is stable. |
You have to change from web to worker, adding a file named worker: node gekko Then, you have to got to Resources of your heroku project and activate it and deactivate web. |
yup my Procfile is
with my package.json containing "start": "node gekko.js --config config.js" |
Awesome! So this is a way to run gekko CLI in heroku? And have you tested running the UI as well? |
@askmike this does the CLI, i messed with the UI 1 time...i am sure i can get it working but it seems to want to use localhost:3000 even after i changed the .env file, i didn't search too hard since i use gekko for live trading. |
@albertolive thank you very match, it worked, this is additional info for other users: |
Hello
first of all thanks for this amazing project
I don't know if I am wrong but I was trying to deploy gekko to Heroku and had some problems, it runs locally everything are fine. I created a Procfile with "web: node gekko.js"
Everything runs normal, but when I deploy to Heroku:
to see what is happening on remote server output is:
I was looking this error R10 on heroku and said: "This error is often caused by a process being unable to reach an external resource, such as a database, or the application doing too much work, such as parsing and evaluating numerous, large code dependencies, during startup"
Any ideas to fix this?
The text was updated successfully, but these errors were encountered: