Heroku Deployment Guide
Deploy Ever Gauzy to Heroku.
Prerequisitesβ
- Heroku CLI installed
- Heroku account with a plan supporting containers
Quick Startβ
1. Create Heroku Appβ
heroku create gauzy-api
heroku addons:create heroku-postgresql:essential-0
heroku addons:create heroku-redis:mini
2. Set Configurationβ
heroku config:set \
NODE_ENV=production \
DB_TYPE=postgres \
JWT_SECRET=$(openssl rand -base64 32) \
JWT_REFRESH_SECRET=$(openssl rand -base64 32) \
API_BASE_URL=https://gauzy-api.herokuapp.com \
CLIENT_BASE_URL=https://gauzy-webapp.herokuapp.com
3. Deploy with Dockerβ
heroku container:push web --app gauzy-api
heroku container:release web --app gauzy-api
4. Scaleβ
heroku ps:scale web=1:standard-1x
Heroku-Specific Notesβ
DATABASE_URLis auto-set by the PostgreSQL addonREDIS_URLis auto-set by the Redis addon- SSL is included on all Heroku apps
- Use
heroku logs --tailfor debugging
Related Pagesβ
- Production Deployment β general guide
- Environment Variables β configuration