-
add the following to your Gemfile:
gem 'rails_12factor' end``` `gem 'figaro'`
-
run
bundle exec figaro install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Start your server with ./run.py | |
'g' is Flask's global file | |
Images, stylesheets, JS files go into app/static | |
============== | |
CONTROLLER: | |
============== | |
Route handlers are written as Python functions |
Note: you want to do include -T
when you first run rails new
-
add the following to your Gemfile:
group :development do gem 'guard-rspec', require: false end
group :test do
-
create rails app with
rails new yourapp --database=postgresql -T
-
create Github repo,
cd
into your app,git init
,git remote add origin git@github.com:username/yourapp.git
,git commit -am
,git push -u origin master
-
add to Gemfile:
gem 'jazz_hands', github: 'nixme/jazz_hands', branch: 'bring-your-own-debugger' gem 'pry-byebug'
gem 'better_errors'