Custom scaffold generates controller, model, policy, and views with corresponding rspec files.
rails g scaffold Object attribute1 attribute2brew install postgresql
bundle && yarn
cp .env.template .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.logAnd then find the accept invitation link in the log or use rake development:seed (see below).
| 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 |
Created when running rake development:seed.
| 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 |
| README.md | project title |
| app.json | name, description, reposiitory |
git remote add template git@github.com:davedkg/davedkg-rails-template.gitgit pull template main --allow-unrelated-histories
git merge --allow-unrelated-histories template/mainheroku buildpacks:add heroku/ruby
heroku buildpacks:set --index 1 https://github.com/leoafarias/heroku-buildpack-node-modules-cleanup
heroku labs:enable runtime-dyno-metadata # Sentry Release Detection, HEROKU_APP_NAME
heroku config:set APP_DOMAIN www.example.com
heroku config:set SOLID_QUEUE_IN_PUMA trueDeploying to heroku will automatically enable SolidQueue, SolidCache and SolidCable.