A template for creating rails 4.2 applications.
In development & test, environment variables are loaded from .env
- EMAIL_HOST: hostname to use in email links
- SECRET_TOKEN: secret token for rails
- UNICORN_WORKERS: number of unicorn workers to start
- FACEBOOK_APP_ID
- FACEBOOK_SECRET
- GITHUB_APP_ID
- GITHUB_SECRET
- ruby 2.1.5+ # rvm install 2.1.5 (older versions of ruby may work, but aren't recommended)
- bundler
- postgresql # http://postgresapp.com
$ git clone [email protected]/devfu/base.git
$ cd base
$ bundle
$ cp {sample,}.env # edit this file
$ cp Procfile.local{.sample,} # edit this file
$ cp config/database.yml{.sample,} # edit this file
$ bundle exec rake db:setup
$ bundle exec rake spec
$ foreman start -f Procfile.local
- phantomjs # brew install phantomjs
Tools used:
- rspec
- capybara
- factory girl
- poltergeist
rake spec # this will run all of the RSpec specifications, located in ./spec
- Specs are organized into model & feature specs (/spec/models, /spec/features)
- Factories are located in /spec/factories.rb
Recommended deployment is via Heroku. They have an excellent intro at http://docs.heroku.com/quickstart
We're using the following heroku addons
- heroku-postgresql:hobby-dev
- memcachier:dev
- newrelic:wayne
- papertrail:choklad
- pgbackups:plus
- sendgrid:starter
Use the heroku config command to check/set environemnt variables on Heroku.
Developed by Dev Fu!, LLC