backpack icon indicating copy to clipboard operation
backpack copied to clipboard

Heroku PaaS

Open ghguy opened this issue 8 years ago • 1 comments

Does this work in Heroku environment? If not, what do we need to change or configure to make it work?

ghguy avatar Sep 01 '17 00:09 ghguy

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.

v1adko avatar Sep 06 '17 10:09 v1adko