lancewave website
JavaScript Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
models
node_modules
public
scripts
views
.gitignore
README
lancewave.js
mpush.sh

README

Server Deployment instructions.:

1. install deps
apt-get install libssl-dev vim-nox nginx unzip g++ screen git-core 
nodejs 4.10
npm

2. vim /etc/nginx/sites-available/lancewave
=====================================================
upstream app_cluster_1 {
        server 127.0.0.1:3000;
}

server {
        listen 0.0.0.0:80;
        server_name lancewave.com www.lancewave.com;
        access_log /var/log/nginx/lancewave.log;

        location / {
          proxy_set_header X-Real-IP $remote_addr;
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_set_header Host $http_host;
          proxy_set_header X-NginX-Proxy true;

          proxy_pass http://app_cluster_1/;
          proxy_redirect off;
        }
}
=====================================================

3. enable nginx server
ln -s /etc/nginx/sites-available/lancewave /etc/nginx/sites-enabled/lancewave

4. under the lancewave folder, run: npm install forever 

5. <path-to-forever-npm_module>/bin/forever start app.js