Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 438 Bytes

deploy.md

File metadata and controls

16 lines (14 loc) · 438 Bytes

Setup environment variables

  • Setup the environment variables in the .env file.
  • Modify setenv.ts with any new variables you've added.
  • Execute the command in the root directory to set the environment variables:
      npm run config -- --environment=prod
    • Never commit the changes in environment.prod.ts!

Deploy

    sudo service nginx stop
    ng build --prod
    sudo service nginx start