-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Deployment on Heroku #1253
Comments
Use Docker or rebind the environment variable. Please check the Heroku documentation for more specific help. |
Hi @aeneasr, thank you for your reply. I am using docker on Heroku and was able to migrate the Hydra database. However the application exits with the following log messages:
|
Again, just rebind the environment variables. There is plenty of information on how to do that but here's for a starter:
Something similar will probably work with buildpack-based builds too. |
@woutor would you mind providing a sample Dockerfile? I am new to a project that uses Hyrda and I'd like to deploy on Heroku (also new to docker... the struggle is real). |
Hi @pmn4, I also needed a nudge ;) This is my Dockerfile: FROM oryd/hydra:v1.0.0-rc.6_oryOS.10-alpine
COPY run.sh /
RUN chmod a+x /run.sh
ENTRYPOINT ["/bin/sh"]
CMD ["/run.sh"] With the following #!/bin/sh
export PUBLIC_PORT=$PORT;
hydra serve public Use this file to build a docker image, then tag and push it to Heroku. Also set the correct environment variables. For the admin server the process is similar, with a different |
thank you @woutor!
|
@woutor did you have any trouble with TLS handshakes when you deployed to heroku?
the secure connection from the client to heroku server looks good, however, something is lost before the request gets to the go layer:
|
Hi @pmn4, I have set the following environment variable: |
A little late to the party, @woutor I'm under the impression that while |
@woutor, I'm new to the docker thing. |
Hydra advertises that it is able to be deployed on Heroku, however, after #904, it is not anymore. To deploy an app on Heroku, it has to listen to the (one) $PORT environment variable. Hydra only listens to the ADMIN_PORT and PUBLIC_PORT variables now.
To be able to deploy Hydra on Heroku, it should listen to a single port which is configurable with the environment variable PORT. Is it possible that such logic can be (re)implemented?
Now, the only alternative to use Hydra with my Heroku powered apps is to host it on a different provider, or stick with version 0.11 that does listen to a single port.
Are there any other option to run Hydra on Heroku which I have missed?
Thanks in advance,
Wouter
The text was updated successfully, but these errors were encountered: