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/
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 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
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 |
Password | |
---|---|
user@example.com | users_password123 |
admin@example.com | admins_password123 |
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 |
git remote add template git@github.com:davedkg/davedkg-rails-template.git
git pull template master --allow-unrelated-histories
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