A feature
Files are created in the dist folder
Generate a script for deploying on Heroku (package.json preinstall script & dependencies + Procfile)
npm run prebuild:prod && npm run build:prod && npm run deploy:heroku
Simplify the deployment process
Currently webpack allows to create a dist folder that we can deploy on any server.
But after that how can we configure heroku to run the application with http-server ?
Is it better to build the application directly from the server by providing him the source code and dependencies or upload the dist file with a specific package.json ?
What I did to deploy to heroku was:
Now, running npm install locally will also build the project, after which pushing to heroku just leaves to running the server.
I first tried building on heroku as well, but it seemed there was not enough memory available in RAM to do so..
Most helpful comment
What I did to deploy to heroku was:
Now, running npm install locally will also build the project, after which pushing to heroku just leaves to running the server.
I first tried building on heroku as well, but it seemed there was not enough memory available in RAM to do so..