-
Notifications
You must be signed in to change notification settings - Fork 738
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
Setup app for heroku deploy #56
Conversation
* Add postinstall script to package.json to ensure webpack assets are built for heroku deploy * Add Procfile for heroku to read the main web process * Add process.env.PORT to listen call
@mickael-kerjean I can circle back and document this and add a Deploy to Heroku button to the README if you accept this contribution. |
Just a little note. Here, you should probably also update the message with the proper port. |
Thank you for your contribution, this is a great idea.
Yes
I don't see anything wrong about this but:
...
info: {
host: "application_url",
port: process.env.PORT || 8334,
bind: process.env.BIND || "127.0.0.1",
usage_stats: true
},
...
` |
if there's support for heroku, it would either need:
|
@mickael-kerjean I have this branch deployed to heroku now. On Heroku ENV variables can be added either with the command line, or in the heroku web UI. In general I think all of the required ENV variables need documenting (for any deployment, not just Heroku)
👍 Sounds good. I might be able to pick this back up tomorrow, but it might be the weekend before I get to it. |
Great then
That's why I've put them in the root of the repo in the
There's no hurry at all, deploying on heroku is a nice addition, not a fix for an awfull security issue. Anyway, whatever times it takes, know that your contribution is really appreciated :) |
I made up a change in the config so that heroku get proper default for the secret_key (random string). it's not great for the end user as it get you disconnect at every restart but that's the price to pay for lazyness Dumb question: your heroku instance is behind SSL right? Is it the default behavior? If not, it can be a pretty nasty security issue |
All paid dynos from heroku have SSL out of the box. Free Dynos do not though, which is what a user would get from clicking the "Deploy to Heroku" button. Perhaps a warning / some documentation in the README under a Heroku Section? |
I agree |
8842ba1
to
192c81a
Compare
a2228af
to
f561608
Compare
567b73e
to
45f5754
Compare
A whole lot has change in this repo since this PR was created. If there's no activity here at all, I will close this somewhere around next week |
Fine to go ahead and close up, I really lost the time to work on this. |
heroku deploy
Ref #15