Get up and running quickly with Rails.
make sure you have new-ish version of PostgreSQL installed (and optionally RVM)
git clone git://github.com/6/rails-on-rails.git APPNAME- edit
APPNAME/.rvmrcto change gemset name cd APPNAMEand runbundle installgit remote rm originand thengit remote add origin your-github-repo-url- add upstream URL to pull in later changes with
git remote add upstream https://github.com/6/rails-on-rails.git - run
rails c, enterSecureRandom.hex(64), and copy that value toconfig/initializers/secret_token.rb - edit
config/database.ymland make DB config changes - create
.envand insert any secret ENV variables (e.g. API keys). AddBASE_URL=http://localhost:5000 - edit
config/locales/en.ymlto insert your app info rake db:createand thenrake db:migrate- create a heroku app on cedar:
heroku create APPNAME -s cedar - 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.
run foreman start
git fetch upstream
git merge upstream/master