Skip to content
a pure P2P post/accept system to trade bitcoins for freelancing types of work
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
doc
models
node_modules
public
scripts
views
.gitignore
README
TODO
b2w.js

README

Server deployment instructions:

1. install deps
CrouchDB
Libssl-dev 
Vim-nox 
Nginx 
Unzip 
G++ 
Screen 
Git-core 
Nodejs 0.6.1
Npm

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

server {
        listen 0.0.0.0:80;
        server_name b2w.com www.b2w.com;
        access_log /var/log/nginx/b2w.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/b2w /etc/nginx/sites-enabled/b2w

4. under the b2w folder, run: npm install forever LazyBoy ejs express

5. <path-to-forever-npm_module>/bin/forever start app.js
You can’t perform that action at this time.