##Cloning instructions
cdto where you want to store the projectgit clone https://github.com/ahijaouy/NextGenerationMen.gitcd NextGenerationMennpm install
##How to use
- type
sudo nodejs server.jsto run non-persistent test - navigate to
localhost:80onHTTPto view project (replacelocalhostwith external AWS instance located athttp://ec2-35-161-110-16.us-west-2.compute.amazonaws.com/
##Action Items
- Integrate static website
- Put favicon in as
/utilities/logo.ico
##Update Live Server
- SSH into server
- git pull
- if you need to update db. Create new db. use db. then to load DDL
source NextGenerationMen/utilities/ddl.sql;
##To use PM2 (our choice for persistence management)
In project root, run pm2 start server.js --watch --name="ngm" -i ##, where ## is the number of node instances needed (this will load balance requests, and auto restart the server on file changes)
pm2 lsshows all processes started throughpm2pm2 delete ngmwill end all instances of thengmprocesspm2 killwill stop thepm2deamonpm2 flushwill flush all logspm2 logswill start a stream with all log output