Name: wagon_rails
Owner: Le Wagon
Description: [DEPRECATED] Please use this ?
Created: 2015-02-21 20:31:52.0
Updated: 2018-03-22 09:32:41.0
Pushed: 2015-12-21 11:35:16.0
Homepage: https://github.com/lewagon/rails-templates
Size: 264
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Wagon Rails is the base Rails application used by Le Wagon's students during the 9-week FullStack bootcamp. It's the scripted version of lewagon/rails-kickoff where you would manually copy/paste commands to achieve the same result with just one command line.
First install the wagon_rails gem:
m install wagon_rails
Then run:
~/code/YOUR_GITHUB_NICKNAME
gon_rails new YOUR_PROJECT_NAME
This will create a Rails app in YOUR_PROJECT_NAME
using the latest version of Rails,
create a GitHub repository and an application on Heroku.
If you don't want to create a GitHub repo, use the --skip-github
flag, and
if you don't want to create an Heroku app, use the --skip-heroku
flag.
gon_rails new YOUR_PROJECT_NAME --skip-github --skip-heroku
This gem suppose that you have Postgresql on your computer. Check out lewagon/setup
For the GitHub repo creation, it assumes you have the hub gem installed.
m install hub
And for the Heroku app creation, it assumes that you have the heroku binary
and are logged in (heroku login
).
ew install heroku
roku login
To see the latest and greatest gems, look at WagonRails' Gemfile, which will be appended to the default generated projectname/Gemfile.
It includes application gems like:
And development gems like:
development
.And production gems for a ready-to-deploy app on Heroku.
WagonRails, when the --skip-heroku
flag is not used, will
add a deploy
script to the bin
repository. Simply deploy with:
ploy # git push heroku + rake db:migrate + restart
You can enable Pundit for user authorization, open
the Gemfile, uncomment the pundit
gem. Then:
ndle install
ils g pundit:install
WagonRails is a fork of thoughtbot/suspenders, which is maintained and funded by thoughtbot, inc.
Thank you guys for creating this gem in the first place!