-
Notifications
You must be signed in to change notification settings - Fork 506
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
Fixed link to heroku 1 click deploy #3530
Fixed link to heroku 1 click deploy #3530
Conversation
The link to heroku now takes the file app.json into account so that the developer can see a nice UI to provide values to required env vars
@@ -19,7 +19,7 @@ Ushahidi 3 | |||
[![Sponsors on Open Collective](https://opencollective.com/platform/sponsors/badge.svg)](#sponsors) | |||
|
|||
|
|||
[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy) | |||
[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy?template=https://github.com/ushahidi/platform/tree/master) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tuxpiper should this point to master or develop? I think master but just checking in case you disagree
do you see any issues with this approach (aside from the fact that we need to "hardcode" the branch in)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
@lexoyo for submitting this 💯
Question: do you think we should explicitly call out all the ENV params in the app.json ?
https://stackoverflow.com/questions/44026881/deploy-to-heroku-button-with-env-variables
https://devcenter.heroku.com/articles/heroku-button#creating-the-app-json-file
was just checking this out and we could define the vars from https://github.com/ushahidi/platform/blob/master/.env.example in app.json too
cc @tuxpiper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usually it is the master branch because the use case is "As a developer I want to host an instance on heroku to show my boss that it is easy to self host this tool"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could define the vars from https://github.com/ushahidi/platform/blob/master/.env.example in app.json too
Yes sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe for that we should merge this and start an issue to discuss what we want in a second step?
my PR is just a fix, the app.json was already there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tuxpiper I will merge this tomorrow , unless you disagree ? last call :)
@lexoyo how is it working for you? Are you in a heroku paid plan or in the free tier? Last time I tried, the free heroku tier would not complete the database migrations, because they were too big. |
Hi @tuxpiper Since then I had the chance to test heroku and I believe the problem is with the conexion to the DB. Heroku provides an env var Do you have a pointer where to change that? Where is the |
@lexoyo I remember taking a stab at this some time ago, pls check this branch diff: https://github.com/ushahidi/platform/compare/3305-fix-heroku-deployment The issue I ended up running into was that the free database tier in heroku sets up a rate limit on the number of transactions and that was quickly exceeded by phinx |
@all-contributors please add @lexoyo for doc |
I've put up a pull request to add @lexoyo! 🎉 |
The link to heroku now takes the file app.json into account so that the developer can see a nice UI to provide values to required env vars
This pull request makes the following changes:
Testing checklist:
link to 1 click deploy
I certify that I ran my checklist
Fixes #3529 .
Ping @ushahidi/platform