ng build --aot --prod
// build the Angular front-end- Copy the back-end and the
dist
folder to the Heroku repo. - change
../angular-front-end-2/dist
to./dist
inapp.js
git push heroku master
Tracademic http://tracademic.utsc.utoronto.ca:3000
ssh [email protected]
// the acount is created by U of T system admincd code-reviewer-2.0
git pull
// updatecd angular-front-end-2
ng build --prod
// build front-endcd ../back-end-API
ps aux | grep username
// find the process id of running node processkill -9 process_id
// cancel itnode app.js &
// start the app in background