The rails app responsible for the AFDC Grants site
###Installation
This installation has several dependencies:
- Ruby 2.1.1 via RVM
- Rails 4.1.1
- Memcache
- Postgres 9.3 (with the hstore extension)
- Once the database is installed, you'll need to create a role for this app.
- sudo apt-get install postgresql-contrib
- sudo su - postgres
- psql
- CREATE ROLE rails_grants WITH LOGIN CREATEDB PASSWORD 'TYPE_YOUR_PASSWORD_HERE';
- \q
- After you run
rake db:create
but before you runrake db:migrate
, you'll need to add the hstore extension:- sudo su - postgres
- psql -d afdc_grants
- CREATE EXTENSION hstore;
- \connect afdc_grants_test;
- CREATE EXTENSION hstore;
- \q
- Once the database is installed, you'll need to create a role for this app.
- Install Postgres 9.3 with postgres-contrib (sudo)
- Install Memcached (sudo)
- Install Ruby 2.1.1 (user)
- Create the user (postgres)
- Follow the instructions here: http://dwradcliffe.com/2013/01/10/install-hstore-to-default-template.html (postgres)
- Install nginx