Skip to content

How to deploy Angular source codes to Heroku #11

@Gs1TestTeam

Description

@Gs1TestTeam
  • ng build --prod​ //--prod meta-flag engages the following optimization features​
  • create App directory: ​
  • create public in GS1_Angular_Prototype_Build​
  • git init​
  • npm install --save​
  • npm install --save chart.js​
  • npm install angular-gtag --save​
  • npm install --save express​
  • create server.js​
  • heroku login​
  • heroku git:remote -a "SERVER_NAME" (heroku git:remote -a shrouded-brook-49369)​
  • git add.​
  • git commit - m "Initial Heroku Commit"​
  • git push heroku master​

Refer to:
https://github.com/angular/angular-cli/wiki/build
https://www.youtube.com/watch?v=0bOJjAUXjhI

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions