Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 1.54 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. JokeyPhone is awesome!
  2.  
  3. HOW TO GET STARTED
  4.  
  5. 1.Install Libraries
  6.   Before Running rake gems:intall do:
  7.  
  8.   a. Install Sphinx Search Engine:
  9.     - Instruction to install Sphinx => http://www.hackido.com/2009/01/install-sphinx-search-on-ubuntu.html
  10.  
  11.   b. To Install Curb gem:
  12.     - sudo apt-get install libcurl4-openssl-dev
  13.     - sudo gem curb
  14.  
  15.   c. To Install Sanitaze gem:
  16.     - sudo apt-get install libxslt-dev libxml2-dev
  17.     - sudo gem install nokogiri
  18.     - sudo gem install sanitize
  19.  
  20. 2. run rake gems:install
  21.  
  22. 3.If you are running on Ubuntu probably have to unprotect de "log" folder and it files
  23.     - sudo nautilus
  24.  
  25. 4.Setting up the database for the first time:
  26.  
  27.   You cannot just run all of the migrations! This is due to someone having modified
  28.   the production database schema manually without using migrations, at some point in    
  29.   its history. As a result, you must follow this procedure to setup a database:
  30.  
  31.     - rake db:create
  32.     - rake db:schema:load
  33.  
  34. 5. Install gems to the test:
  35.     - sudo rake gems:install RAILS_ENV=test
  36.  
  37. -- MAKING CHANGES TO THE DATABASE SCHEMA
  38.  
  39. If you need to further modify the schema once the database has been setup on your
  40. local machine this way, you can go ahead and create and run migrations as you would
  41. normally. Commit both the schema.rb file and your new migrations to version control.
  42. Other devs on your team who already have their local DB setup, can simply run the new
  43. migrations. New devs should follow the "Setting up the database for the first time"
  44. instructions