A Rails template with our standard defaults, ready to deploy to Heroku.
Suspenders is the base Rails application used at thoughtbot.
First install the suspenders gem:
gem install suspenders
This will create a Rails app in
projectnameusing the latest version of Rails.
To see the latest and greatest gems, look at Suspenders' Gemfile, which will be appended to the default generated projectname/Gemfile.
It includes application gems like:
And development gems like:
And testing gems like:
Suspenders also comes with:
./bin/setupconvention for new developer setup
./bin/deployconvention for deploying to Heroku
Rack::Deflaterto compress responses with Gzip
SECRET_KEY_BASEenvironment variable in all environments
Read the documentation on deploying to Heroku
You can optionally create Heroku staging and production apps:
suspenders app --heroku true
HONEYBADGER_ENVenvironment variable set to
You can optionally specify alternate Heroku flags:
suspenders app \ --heroku true \ --heroku-flags "--region eu --addons sendgrid,ssl"
See all possible Heroku flags:
heroku help create
This will initialize a new git repository for your Rails app. You can bypass this with the
suspenders app --skip-git true
You can optionally create a GitHub repository for the suspended Rails app. It requires that you have Hub on your system:
brew install hub # macOS, for other systems see https://github.com/github/hub#installation suspenders app --github organization/project
This has the same effect as running:
hub create organization/project
Suspenders uses spring by default. It makes Rails applications load faster, but it might introduce confusing issues around stale code not being refreshed. If you think your application is running old code, run
spring stop. And if you'd rather not use spring, add
DISABLE_SPRING=1to your login file.
Suspenders requires the latest version of Ruby.
Some gems included in Suspenders have native extensions. You should have GCC installed on your machine before generating an app with Suspenders.
Use OS X GCC Installer for Snow Leopard (OS X 10.6).
Use Command Line Tools for Xcode for Lion (OS X 10.7) or Mountain Lion (OS X 10.8).
PostgreSQL needs to be installed and running for the
If you have problems, please create a GitHub Issue.
Thank you, contributors!
Suspenders is Copyright © 2008-2017 thoughtbot. It is free software, and may be redistributed under the terms specified in the LICENSE file.
Suspenders is maintained and funded by thoughtbot, inc. The names and logos for thoughtbot are trademarks of thoughtbot, inc.