vladotesanovic / angular2-express-starter

Angular 8 and Express :family: ( Heroku ready )
https://express-angular2.herokuapp.com
MIT License
543 stars 232 forks source link

Deploy package.json #83

Closed oscarcalvo closed 7 years ago

oscarcalvo commented 7 years ago

Hi Vlado:

I have doubts about package installation. If I have to deploy only dist folder, how server knows about what packages node needs? I understand I need to deploy package.json manually, right?

Thanks

high-malloy commented 7 years ago

Do this:

  1. Pull on the production server to have ALL the files of the project on the server that are not generated.
  2. Run npm install.
  3. Run npm run build.
  4. Start the server with the server file (www.js) from the DIST folder.
oscarcalvo commented 7 years ago

Hey @high-malloy thanks.