Created
July 4, 2011 09:14
-
-
Save andrew/1063120 to your computer and use it in GitHub Desktop.
Instructions for getting started developing split
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install rvm | |
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) | |
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"' >> ~/.bash_profile | |
source .bash_profile | |
rvm install ruby-1.8.7 | |
rvm reload | |
rvm use ruby-1.8.7 | |
gem install bundler | |
# install homebrew (need xcode installed) | |
ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)" | |
brew install git | |
brew install redis | |
# follow the instructions printed by homebrew | |
# clone split | |
git clone git://github.com/andrew/split.git | |
# clone split sinatra example | |
git clone git://github.com/andrew/split-sinatra-example.git | |
cd split-sinatra-example | |
bundle install | |
rackup | |
# click around to collect some data | |
open http://localhost:9292 | |
# view data in the dashboard | |
open http://localhost:9292/split | |
# working on split dashboard | |
# edit split-sinatra-example/Gemfile | |
# replace | |
# gem 'split' | |
# with | |
# gem 'split', :path => '../split' | |
bundle install | |
gem install shotgun # reloads sinatra automatically | |
shotgun | |
# edit code in ../split, reload and see it live | |
open http://localhost:9393 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment