Skip to content

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
Ruby CoffeeScript JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db
design
lib
log
public
script
test
vendor
.gitignore
.rvmrc
.slugignore
Gemfile
Gemfile.lock
Procfile
Rakefile
config.ru
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.