backpack
backpack copied to clipboard
Heroku PaaS
Does this work in Heroku environment? If not, what do we need to change or configure to make it work?
It does work with Heroku (or any other hosting for that matter), but backpack is just a tool to simplify build and development configuration and has very little to do with deployments.
I'd also advise you to add
"postinstall": "backpack build"
to your scripts in package.json as Heroku runs install automatically on build step and this way it will also build your app.
Then you can run node ./build/main.js.
Heroku uses npm start by default, but you can configure it via Procfile if you want to.