Skip to content

fork-n-roll/fork-n-roll

develop
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

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

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.