##Cloning instructions
cd
to where you want to store the projectgit clone https://github.com/ahijaouy/NextGenerationMen.git
cd NextGenerationMen
npm install
##How to use
- type
sudo nodejs server.js
to run non-persistent test - navigate to
localhost:80
onHTTP
to view project (replacelocalhost
with 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 ls
shows all processes started throughpm2
pm2 delete ngm
will end all instances of thengm
processpm2 kill
will stop thepm2
deamonpm2 flush
will flush all logspm2 logs
will start a stream with all log output