-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting up a fork on Heroku #3
Comments
It looks like the issue is your process doesn't have permission to use port 80. I don't know how to allow access on port 80 on heroku It looks like you should somehow set HFT_PORT to PORT as in
or
and that heroku automatically passes in a port that it forwards to port 80? |
Okay I found this documentation on the Heroku site: https://help.heroku.com/P1AVPANS/why-is-my-node-js-app-crashing-with-an-r10-error I tried using HFT_PORT = $PORT in their front-end but it doesn't work:
It seems I'd have to use it in code directly |
Ok, here is how I got it to work on Heroku. NOTE: You have to have a custom domain. You can NOT use the heroku domains Steps
run the game In a browser window try to go to note: at step 9 here's my example. My custom domain to test was note: You need to update your git repo |
This worked beautifully! Thank you very much Gregg! I'm still waiting on my Domain provider to activate my domain name, but the app is running. |
Yes, it's because of https. The page served from happyfuntimes.net needs to try to connect to the game. the game is only running http. https pages are not allowed to talk to http pages. The browser enforces this. Getting the game to serve https is not impossible but it would require a certificate for each machine running the game so at the moment there is no inexpensive and non-techie friendly way to do it. And, there is no way to use the heroku domains as http (or at least no way I could find). https pages work via certificates and certificates are associated with domains so when you use your own domain things default to http unless you also supply a certificate. |
Hey there, I've been attempting to get a fork working on Heroku and I'm running into issues. I was wondering if you could take a look?
Disclaimer: I'm new to Github, Node.js and Heroku, so it's a perfect storm of confusion. I might need some adult supervision on this one.
What I've done so far:
Forked this Github repo to https:/github.com/litteratus/happyfuntimes.net
Set up a Heroku free trial with the Nodejs buildpack
Set a config var HFT_PORT to 80 (as per suggestion on the other issue)
Running the app generates the following log:
So, I went to the console:
I ran npm install, which generated the following
I tried
npm audit
to get the detailsSo, I followed the suggestions:
npm install request@2.88.0
npm install --save-dev grunt@1.0.3
npm install --save-dev mocha@5.2.0
npm install forever@0.15.3
npm install --save-dev html-minifier@3.5.21
It didn't suggest a fix for
hoek
so I found the latest version was 5.0.4 and did:npm install hoek@5.0.4
npm install tunnel-agent@0.6.0
This process didn't help. I've still got a crashed Dyno.
So.. for this total nub, what am I doing wrong?
The text was updated successfully, but these errors were encountered: