Deploy the backend and frontend on the same Heroku app/dyno

I just successfully completed this goal using static files created during a heroku postbuild step, as described in this blogpost. I have a React frontend (could be anything though) and Express API backend. Each process has its own port in dev, but deploying on Heroku uses just one total. Put the working frontend in a … Read more

Can a Procfile have comments?

Yes, you can put comments in a Procfile. I know of two programs which parse Procfiles, foreman and forego. In foreman, which originated the Procfile format, a Procfile can contain comments, blank lines, and in fact any line that doesn’t look like a meaningful Procfile line. From the class that parses a Procfile: # A … Read more