Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

most of my rails apps start out the same way

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 db
Octocat-spinner-32 design
Octocat-spinner-32 lib
Octocat-spinner-32 log
Octocat-spinner-32 public
Octocat-spinner-32 script
Octocat-spinner-32 test
Octocat-spinner-32 vendor
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rvmrc
Octocat-spinner-32 .slugignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 Procfile
Octocat-spinner-32 Rakefile
Octocat-spinner-32 config.ru
Octocat-spinner-32 readme.md
readme.md

Get up and running quickly with Rails.

prereqs

make sure you have new-ish version of PostgreSQL installed (and optionally RVM)

checklist

  1. git clone git://github.com/6/rails-on-rails.git APPNAME
  2. edit APPNAME/.rvmrc to change gemset name
  3. cd APPNAME and run bundle install
  4. git remote rm origin and then git remote add origin your-github-repo-url
  5. add upstream URL to pull in later changes with git remote add upstream https://github.com/6/rails-on-rails.git
  6. run rails c, enter SecureRandom.hex(64), and copy that value to config/initializers/secret_token.rb
  7. edit config/database.yml and make DB config changes
  8. create .env and insert any secret ENV variables (e.g. API keys). Add BASE_URL=http://localhost:5000
  9. edit config/locales/en.yml to insert your app info
  10. rake db:create and then rake db:migrate
  11. create a heroku app on cedar: heroku create APPNAME -s cedar
  12. add newrelic: heroku addons:add newrelic:standard

Once you sign up, you can make yourself (or other users) and admin:

rails c
User.find_by_email("your@email.com").add_role :admin

Then, navigate to http://localhost:5000/admin to administer data.

start

run foreman start

pulling in updates

git fetch upstream
git merge upstream/master
Something went wrong with that request. Please try again.