☝️ For one-click deployment
- Install Homebrew
- Install the Heroku CLI
- Run
bundle install
Run the following command from the terminal bundle exec rake db:setup
followed by bundle exec rake db:migrate
.
Run the following command from the terminal bundle exec rake test
.
Heroku deploys automatically every commit on the master
branch to the staging environment. Is important to keep the branch in a deployable state.
Include the following environment variables in your local and remote instance for the application to work correctly.
Key | Description | Required |
---|---|---|
SECRET_KEY_BASE |
Rails secret key, used to secure your application | Yes |
STRIPE_PUBLISHABLE_KEY |
Used by Stripe for subscription management | Yes |
STRIPE_SECRET_KEY |
See above | Yes |
STRIPE_WEBHOOK_SECRET |
Used by Stripe to authenticate your requests | Yes |
STRIPE_PRICE_ID |
Used by Stripe for the subscription price | Yes |
SENDGRID_API_KEY |
Used by Sendgrid in order to use Rails Mailers | Yes |
SENDGRID_DOMAIN |
See above | Yes |
SENDGRID_USERNAME |
See above | Yes |
SENDGRID_PASSWORD |
See above | Yes |
BUGSNAG_API_KEY |
Used by Bugsnag for error tracking | No |
Add all the jobs in /lib/tasks/odontome.rake
to your Scheduler Heroky extension.
Watch all the events in /app/controllers/api/webhooks/stripe_controller.rb
in the developer section of your Stripe dashboard.