
Untitled
By: a guest on
May 7th, 2012 | syntax:
None | size: 1.54 KB | hits: 16 | expires: Never
JokeyPhone is awesome!
HOW TO GET STARTED
1.Install Libraries
Before Running rake gems:intall do:
a. Install Sphinx Search Engine:
- Instruction to install Sphinx => http://www.hackido.com/2009/01/install-sphinx-search-on-ubuntu.html
b. To Install Curb gem:
- sudo apt-get install libcurl4-openssl-dev
- sudo gem curb
c. To Install Sanitaze gem:
- sudo apt-get install libxslt-dev libxml2-dev
- sudo gem install nokogiri
- sudo gem install sanitize
2. run rake gems:install
3.If you are running on Ubuntu probably have to unprotect de "log" folder and it files
- sudo nautilus
4.Setting up the database for the first time:
You cannot just run all of the migrations! This is due to someone having modified
the production database schema manually without using migrations, at some point in
its history. As a result, you must follow this procedure to setup a database:
- rake db:create
- rake db:schema:load
5. Install gems to the test:
- sudo rake gems:install RAILS_ENV=test
-- MAKING CHANGES TO THE DATABASE SCHEMA
If you need to further modify the schema once the database has been setup on your
local machine this way, you can go ahead and create and run migrations as you would
normally. Commit both the schema.rb file and your new migrations to version control.
Other devs on your team who already have their local DB setup, can simply run the new
migrations. New devs should follow the "Setting up the database for the first time"
instructions