Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
98 lines (69 sloc) 2.47 KB

PagerBeauty on Heroku

Requisites

  1. Heroku CLI
  2. Git

Deploying with Git

General documentation on Git deploys is available on Heroku Dev Center.

# Log into Heroku
heroku login

# Clone PagerBeauty repository and change directory to it
git clone https://github.com/sergiitk/pagerbeauty.git
cd pagerbeauty

# Switch to the latest stable build
git checkout production

# Create new application
heroku create

# Minimal configuration

# PagerDuty REST API v2 Access Key (Read-only)
# Generate your key https://support.pagerduty.com/docs/using-the-api
# or try test key y_NbAkKc66ryYTWUXYEu
heroku config:set PAGERBEAUTY_PD_API_KEY=y_NbAkKc66ryYTWUXYEu

# Comma-separated list of PagerDuty schedule ids.
# You can find schedule id in the URL of the schedule on PagerDuty website after symbol #
# For example, schedule https://example.pagerduty.com/schedules#PJ1P5JQ has id PJ1P5JQ
# Or try test schedules: PJ1P5JQ,P538IZH
heroku config:set PAGERBEAUTY_PD_SCHEDULES=PJ1P5JQ,P538IZH

# Using `heroku config:set`, you can configure any PagerBeauty option from this list:
# https://github.com/sergiitk/pagerbeauty#configuration

# Deploy!
git push heroku production:master

# Open your new app
heroku open

Updating PagerBeauty Deployed with Git

# Clone pagerbeauty repository if you don't have it
git clone https://github.com/sergiitk/pagerbeauty.git

# Change directory to pagerbeauty
cd pagerbeauty

# Switch to the latest stable build
git checkout production
git pull

# Deploy!
git push heroku production:master

Deploying with Heroku Button

Deploy to Heroku

Updating PagerBeauty Deployed with Heroku Button

Currently the only way to update Heroku app deployed with Heroku Button is through Heroku CLI and Git.

# Log into heroku
heroku login

# Clone pagerbeauty repository if you don't have it
git clone https://github.com/sergiitk/pagerbeauty.git

# Change directory to pagerbeauty
cd pagerbeauty

# Switch to the latest stable build
git checkout production
git pull

# Find the name of PagerBeauty app on Heroku
heroku apps

# Register it in git
heroku git:remote -a my-pagerbeauty-app

# Deploy!
git push heroku production:master

# Open your app
heroku open
You can’t perform that action at this time.