$ make prod_first_deploy
- for the first time, this will:- Deploy the latest code
- Run db migrations
- Seed the database with dummy records
$ make prod_deploy
- for the continuous deployments, this will:- Deploy the latest code
- Run db migrations
$ rspec .
- to run all the tests defined in./spec/*
$ rspec spec/**/**_spec.rb
- to run sepcific tests$ rspec spec/**/**_spec.rb:Line
- to run sepcific tests at line number
- Obtain credentials from production server:
$ heroku run rails c -a rent-a-house-backend
Doorkeeper::Application.first.uid
Doorkeeper::Application.first.secret
- Use
uid
value asclient_id
in the request body - Use
secret
value asclient_secret
in the request body
.
├── app # App
│ ├── controllers # Web request implementations
│ │ ├── api # API endpoints are categorized
│ │ └── ...
│ └── ...
├── config # Rails configuration
├── db
│ ├── migrate # Migration files
│ ├── structure.sql # Database structure
│ └── ...
├── lib
│ ├── ...
│ └── task # One-off rake tasks
└── ...
- Sample accounts:
- [Admin]
- email:
[email protected]
- password:
password
- email:
- [User]
- email:
[email protected]
- password:
password
- email:
- [Admin]