These are chat archives for reactioncommerce/reaction

2nd
Mar 2019
Patrick Newell
@pnewell4_twitter
Mar 02 02:34
Hey y'all, has anyone ever deployed a docker image to Heroku?
I have little experience with other hosting platforms and would really like to stick with Heroku, but I am having a hard time deploying Hydra. Specifically, it seems that I cannot pass environment variables.
My Dockerfile looks like this and is clearly starting hydra, but on port 4444, which it not the dynamically assigned port that heroku wants me to use:
FROM oryd/hydra:v1.0.0-beta.9-alpine

ENV DATABASE_URL $DATABASE_URL
ENV PUBLIC_PORT $PORT
ENV OAUTH2_ISSUER_URL $OAUTH2_ISSUER_URL
ENV OAUTH2_CONSENT_URL $OAUTH2_CONSENT_URL
ENV OAUTH2_LOGIN_URL $OAUTH2_LOGIN_URL
ENV DATABASE_URL $DATABASE_URL
ENV SYSTEM_SECRET $SYSTEM_SECRET
ENV OAUTH2_SHARE_ERROR_DEBUG $OAUTH2_SHARE_ERROR_DEBUG
ENV OIDC_SUBJECT_TYPES_SUPPORTED $OIDC_SUBJECT_TYPES_SUPPORTED
ENV OIDC_SUBJECT_TYPE_PAIRWISE_SALT $OIDC_SUBJECT_TYPE_PAIRWISE_SALT

CMD ["migrate", "sql", "-e"]
CMD ["serve", "public"]
Patrick Newell
@pnewell4_twitter
Mar 02 02:41
🤔if I hardcode some meaningless port, I see it passed to hydra. I guess Heroku is not setting $PORT like the documentation suggest?.
I keep getting
Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
Philipp Laurim
@EdgarNigel
Mar 02 16:32
Hey all quick q: How do I import the reaction component library correctly if I’m building a custom storefront without the starterkit, e.g. apollo + react from scratch? import { Components } from "@reactioncommerce/reaction-components“;doesn’t seem to work / throws Module not found
Loan Laux
@loan-laux
Mar 02 16:37
@EdgarNigel @reactioncommerce/reaction-components is not an NPM package, it's a Babel alias that points to core code. In other words: there's no way to use it outside of Reaction except by porting it yourself.
@pnewell4_twitter Never tried to deploy Reaction on Heroku, sorry. :(
@rajesh-vi Yes I do! Reach out to https://outgrow.io :)