-
Prerequisites
- A Heroku account
- Heroku CLI installed
- Git installed
-
Create a New Heroku App
heroku create your-app-name
-
Configure Environment Variables Set the following required environment variables:
heroku config:set AZURE_AD_CLIENT_ID=your_client_id heroku config:set AZURE_AD_CLIENT_SECRET=your_client_secret heroku config:set AZURE_AD_AUTHORITY=https://login.microsoftonline.com/your_tenant_id heroku config:set AZURE_AD_REDIRECT_URI=https://your-app-name.herokuapp.com/auth/redirect heroku config:set DOCSIE_PORTAL_MASTER_KEY=your_master_key heroku config:set DOCSIE_PORTAL_URL=your_portal_url heroku config:set SECRET_KEY=your_secret_key
-
Deploy the Application
git push heroku main
-
Open the Application
heroku open
- Update your Microsoft Entra ID application settings with your new Heroku URL
- Add
https://your-app-name.herokuapp.com/auth/redirect
to your application's redirect URIs
- View application logs:
heroku logs --tail
- Restart the application:
heroku restart
For more detailed information about Heroku deployments, visit Heroku's documentation.