Skip to content

Instantly share code, notes, and snippets.

@yachi
Created October 10, 2012 07:52
Show Gist options
  • Select an option

  • Save yachi/3863871 to your computer and use it in GitHub Desktop.

Select an option

Save yachi/3863871 to your computer and use it in GitHub Desktop.
set up rails environment

Install mysql - brew brew install mysql

run mysql_secure_installation to setup mysql password

Install Ruby 1.9.3 - rbenv / rvm

gem install bundler

edit config/database.yml

bundle install to install gems

run rake db:setup to create mysql tables

run rspec to test

foreman start to start rails dev environment

puma or rails s to start rails server

rails c or richrc to start rails console

brew install sphinx to install sphinx

rake ts:conf to generate sphinx conf

rake ts:rebuild to build index and start sphinx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment