This repository was archived by the owner on Jul 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
Heroku Deployment Guide
Oren Kanner edited this page Jan 15, 2015
·
31 revisions
Welcome to the Reservations Heroku deployment guide. Please select which of the following methods you're using to deploy to Heroku: Heroku button or Heroku toolbelt / CLI.
Deploying to Heroku with the Heroku button is quick, easy, and a great way to get an instance of Reservations up and running quickly. The steps for a fully-functioning deployment are as follows:
- Set up deployment
- Click on the "Deploy to Heroku" button in the README [screenshot - click_button.png]
- Create a Heroku account or sign in to your existing account
- Enter an application name [screenshot - app_name.png]
- Enter the instance hostname for the
RAILS_HOST_NAME
config setting [screenshot - host_name.png] - Click the "Deploy for Free" button [screenshot - click_deploy_button.png]
- Finalize instance configuration
- When deployment is finished, click on the "Make your first edit" link [screenshot - click_edit_link.png]
- Click on the "Settings" link [screenshot - click_settings_button.png]
- Click on the "Reveal Config Vars" button [screenshot - reveal_config_vars.png]
- Click on the "Edit" button [screenshot - edit_config_vars.png]
- Copy the
MANDRILL_APIKEY
var into theRES_SMTP_PASSWORD
var and theMANDRILL_USERNAME
var into theRES_SMTP_USERNAME
var and click save [screenshot - copy_email_config.png] - Click on the "Resources" link [screenshot - click_resources_button.png]
- Click on the "Scheduler" add-on link [screenshot - click_scheduler.png]
- Schedule hourly and daily rake tasks [screenshot - configure_scheduler.png] * Note that these jobs will consume Heroku resources and can result in your application costing you money. For more information see here.
- Edit instance settings
- Visit your instance (
http://my-reservations-app.herokuapp.com
) - Click on the "Sign In" link on the top-right corner [screenshot - click_sign_in.png]
- Log in with the email
[email protected]
and passwordpassw0rd
- Visit the application settings [screenshot - click_settings_link.png]
- Edit the settings to your liking and click on the "Update Settings" button on the bottom of the page; make sure to change the "Admin email" setting to your e-mail address so you receive notifications [screenshot - edit_admin_email.png]
- Visit your user profile [screenshot - click_profile_link.png]
- Click on the "Edit Information" button on the bottom of the page and edit your profile as desired; make sure to change your "Email" and "Password" at a minimum [screenshot - edit_profile.png]
- Have fun!
Include two sections, one for Heroku button deployment and one for generalized deployment (e.g. using rake app:setup
and manual configuration of the application, see this comment).
Instructions go here:
- Click on "Deploy to Heroku" button
- Instructions in Heroku form (w/ screenshots)
- set up app name
- properly enter
RAILS_HOST_NAME
- Post-deployment instructions (screenshots)
- set up e-mail authentication configs
- change the superuser login info / profile
- change the app configs (particularly e-mail)
- schedule cron jobs if desired