Skip to content

Deploy this customizable Ruby on Rails starter template to Heroku in seconds.

Notifications You must be signed in to change notification settings

davedkg/davedkg-rails-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

davedkg-rails-template

CircleCI

Local Setup

brew install postgresql redis
bundle && yarn
cp .env.sample .env
bundle exec rake db:setup db:seed
rspec
foreman start -f Procfile.dev
open http://localhost:3000/

Create First User

rails c
<pry> User.invite!(email: "bob@bob.com")
<pry> exit
tail -200 log/development.log

And then find the accept invitation link in the log.

Custom Scaffold

Custom scaffold generates controller, model, policy, views with corresponding rspec files

rails g scaffold Object attribute1 attribute2
rails g pundit:policy Object
rails g request_specs Object

Development Rake Tasks

Task Description
development:reset Reset development and test databases, run development:seed, clear out tmp files
development:seed Create seed data for development enviornment
fix Run Auto-correctors for Linters
lint Run All Linters

Development Users

Email Password
user@example.com users_password123
admin@example.com admins_password123

Rebrand App

File Change
.circleci/config.yml database name
config/initializers/constants.rb PLATFORM_NAME
config/application.rb Rails::Application module name
config/database.yml database names
.ruby-gemset gemset name
README.md project title
app.json name, description, reposiitory

Merge Template Updates

Setup

git remote add template git@github.com:davedkg/davedkg-rails-template.git

Merge

git pull template master --allow-unrelated-histories

Deploy to Heroku

Configuring

heroku buildpacks:add heroku/ruby
heroku labs:enable runtime-dyno-metadata # Sentry Release Detection, HEROKU_APP_NAME
heroku config:set APP_DOMAIN www.example.com