Deploying to Heroku
I was looking to deploy commento
to Heroku with Docker. I was able to do so by modifying the Dockerfile and using a run.sh
script that loads PORT
and DATABASE_URL
into COMMENTO_PORT
and COMMENTO_POSTGRES
, respectively, at runtime. COMMENTO_POSTGRES
does not need to be loaded at runtime but heroku allocates ports dynamically, so, at the very least, COMMENTO_PORT
merits this treatment.
This lives on a fork on github but I was wondering if this is worth cutting a branch/PR for here.
Edited by Dat Boi Diego