-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Ahmed Issa edited this page Aug 22, 2016
·
6 revisions
##Backend
If you have problems with installing the pg gem try creating an env variable called ARCHFLAGS and set it to "-arch x86_64"
- Install ruby according to http://sourabhbajaj.com/mac-setup/Ruby/README.html
- Install ruby 2.1.4
- Set 2.1.4 to local ruby version: rbenv local 2.1.4
- Install postgresql
- Clone git repo
- Install "bundler" gem
- Run
bundle install
in application root bundle exec rake db:drop
bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rake db:seed
-
rails server
to start the server
to run the tests use bundle exec rspec
- heroku git:remote -a alumni-db-backend-dev -r heroku_staging
- heroku git:remote -a alumni-db-backend -r heroku_production
- heroku pg:reset DATABASE_URL --app alumni-db-backend-dev --confirm alumni-db-backend-dev
- heroku pg:reset DATABASE_URL --app alumni-db-backend--confirm alumni-db-backend