_________ __ _____ _______________.__
/ _____// |______ _/ ____\/ ____\______ \ | _____ ____
\_____ \\ __\__ \\ __\\ __\ | ___/ | \__ \ / \
/ \| | / __ \| | | | | | | |__/ __ \| | \
/_______ /|__| (____ /__| |__| |____| |____(____ /___| /
\/ \/ \/ \/
- Install homebrew: https://github.com/mxcl/homebrew/wiki/installation
brew install postgresql
(optional, you may already have these)- Initialize Postgres db:
initdb /usr/local/var/postgres
- Set ownership of pgsql socket:
sudo chown $USER /var/pgsql_socket/
- Run script to correct Lion's Postgres path:
curl http://nextmarvel.net/blog/downloads/fixBrewLionPostgres.sh | sh
- Create an auto-start launchctl script per
brew info postgres
's instructions - Create _postgres db user:
createuser -a -d postgres
- Verify postgres is working:
psql template1 -U _postgres
brew install git
- Install rvm or rbenv: https://rvm.io/rvm/install/ or https://github.com/sstephenson/rbenv#section_2
- rvm install 1.9.3 or rbenv install 1.9.3-p194
- rvm use 1.9.3-p125 or rbenv global 1.9.3-p194
- Clone the repo from github,
git clone git@github.com:rescuedcode/StaffPlan.git
- cd to the app and
bundle
rake db:create
git remote add heroku git@heroku.com:staffplan.git
(to enable deploying to heroku)- bootstrap local database using prod data:
heroku db:pull
(You may heroku credentials for this. You'll also need to be given permission explicitly.) - run the app!:
bundle exec rails s