Skip to content
develop
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Development

# getting the code
git clone git@github.com:fork-n-roll/fork-n-roll.git

# install redis
brew install redis

# start redis
redis

# install zurb foundation and compass
gem install zurb-foundation
gem install compass

# compile assets and watch for updates
compass watch frontend

# developing
npm install
npm start

# testing
npm test

# deploying (to fork-n-roll.com)
./deploy fnr

Remote server

Download and run setup.sh on your remote machine.

See also:

Tips

Server

  • Ubuntu 14.04 - 64-bit
  • repo is at: /home/deploy/current
  • server is at: /home/deploy/current/server.js
  • worker is at: /home/deploy/current/worker.js
  • server logs are at: /home/deploy/shared/logs/server/current
  • worker logs are at: /home/deploy/shared/logs/worker/current
  • runit keeps the server/worker running.
    • sv restart serverjs - restarts
    • sv start serverjs - starts
    • sv stop serverjs - stops
    • ps -ef | grep runsvdir - to see logs
    • cat /etc/service/serverjs/run - to see the config

You can use the ./deploy script included in this repo to deploy to your server right now. Advanced users, feel free to tweak.

You can’t perform that action at this time.