This project was generated with Angular CLI version 6.2.2.
- Build the project using
ng buildand/orng build --prod(only if using node.js to serve the project) - In the base directory of the project, run
node server.jsto start the server; open your browser to localhost:3005 to see the project - it serves the files from thedist\directory created when runningng build - You can also run
ng servebut it won't have the database connection provided by the node.js backend (server.js); this serves the files straight from thesrc\folder
- Using Filezilla (or equivalent program), sign in to the EC2 instance and open up the
server\directory (might have to sudo cd to it) - Delete/replace the existing files with the files from your computer
- Upload the new files to the
server\directory; do not uploadnode_modules\folders/files - Run
npm install - Run
ng builddo not runng build --prod- the server freezes up (you can upload thedist\directory given by runningng build --prodon your computer instead) - Delete the old pm2 running server with
pm2 delete server - Run
pm2 start server.js - Here's some pm2 process management stuff: http://pm2.keymetrics.io/docs/usage/process-management/
- Download the Git for Windows client from above
- If needed, add the source code to a local repository (https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/)
- The remote repository URL for the project is: https://github.com/project-group-a/CommunityCalendar.git
- In base directory of the project, run
git add . - Run
git commit -m "commit message" - Run
git push origin master