https://github.com/authorizerdev/authorizer-heroku
Deploying authorizer.dev on heroku
https://github.com/authorizerdev/authorizer-heroku
hacktoberfest
Last synced: 4 months ago
JSON representation
Deploying authorizer.dev on heroku
- Host: GitHub
- URL: https://github.com/authorizerdev/authorizer-heroku
- Owner: authorizerdev
- Created: 2021-07-21T13:39:44.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-01T01:57:56.000Z (over 1 year ago)
- Last Synced: 2025-03-03T08:14:04.356Z (11 months ago)
- Topics: hacktoberfest
- Language: Dockerfile
- Homepage:
- Size: 82 KB
- Stars: 5
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Authorizer Server on Heroku
Deploy Authorizer using [heroku](https://github.com/authorizerdev/authorizer-heroku) with Postgres database for free and quickly play with it in 30seconds
> Note: In case if you have paid heroku version and want to deploy authorizer with postgres and redis, please checkout button on this [branch](https://github.com/authorizerdev/authorizer-heroku/tree/with-postgres-redis)
[](https://heroku.com/deploy?template=https://github.com/authorizerdev/authorizer-heroku)
After click the above button you will see screen as below, follow the steps mentioned below:

## Step 1: Enter the App name
App name becomes the url for your application. Example if you have entered `authorizer-demo` as the app name then the authorizer url will be `authorizer-demo.herokuapp.com`.
## Step 2: Choose the Region
Select the region you want to deploy you application in. Heroku supports United States and Europe only.
## Step 3: Configure the Environment Variables
Required envs are pre-configured, but based on the production and social logins, please configure the environment variables. Please refer to [environment variables docs](/core/env) for more information
# Updating Authorizer to latest version on existing Heroku instance
## Pre requisites
- [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli)
- [Git](https://git-scm.com/downloads)
## Step 1: Clone Authorizer Heroku App
The Authorizer app with Heroku buildpack/configuration is available at: https://github.com/authorizerdev/authorizer-heroku.
Clone the above repository.
```sh
git clone https://github.com/authorizerdev/authorizer-heroku
cd authorizer-heroku
```
If you already have this, then pull the latest changes which will have the updated GraphQL engine Docker image.
## Step 2: Attach Heroku app
Let’s say your Heroku app is called authorizer-heroku and is running on https://authorizer-heroku.herokuapp.com.
From inside the graphql-engine-heroku directory, use the Heroku CLI to configure the git repo you cloned in Step 1 to be able to push to this app.
```sh
# Replace with your Heroku app's name
heroku git:remote -a
heroku stack:set container -a
```
You can find your Heroku git repo in your Heroku - Settings - Info - Heroku Git URL
## Step 3: git push to deploy the latest Authorizer GraphQL engine
When you git push to deploy, the Heroku app will get updated with the latest changes:
```sh
git push heroku main
```