Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/willnet/redash-on-heroku
Dockerfiles for hosting redash on heroku
https://github.com/willnet/redash-on-heroku
Last synced: 16 days ago
JSON representation
Dockerfiles for hosting redash on heroku
- Host: GitHub
- URL: https://github.com/willnet/redash-on-heroku
- Owner: willnet
- Created: 2017-09-01T06:44:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-11-11T07:21:17.000Z (3 months ago)
- Last Synced: 2025-01-02T23:33:33.281Z (23 days ago)
- Homepage:
- Size: 10.7 KB
- Stars: 46
- Watchers: 7
- Forks: 30
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Redash on Heroku
Dockerfiles for hosting redash on heroku
## How to create
```sh
git clone [email protected]:willnet/redash-on-heroku.git
cd redash-on-heroku
heroku create --stack=container your_app_name
```## How to setup
### Add Addons
Add following addons on heroku dashboard.
- heroku postgres
- Redis Cloud(or something)
- sendgrid (or something)Choose redis addon allow more than or equal 30 connections. Otherwise you will get connection errors frequently.
### Add environment variables
Add environment variables like following.
```sh
heroku config:set PYTHONUNBUFFERED=0
heroku config:set QUEUES=queries,scheduled_queries,celery
heroku config:set REDASH_COOKIE_SECRET=YOUR_SECRET_TOKEN
heroku config:set REDASH_DATABASE_URL=YOUR_POSTGRES_URL
heroku config:set REDASH_ENFORCE_HTTPS=true
heroku config:set REDASH_HOST=YOUR_DOMAIN_URL
heroku config:set REDASH_LOG_LEVEL=INFO
heroku config:set REDASH_MAIL_DEFAULT_SENDER=YOUR_MAIL_ADDRESS
heroku config:set REDASH_MAIL_PASSWORD=YOUR_ADDON_PASSWORD
heroku config:set REDASH_MAIL_PORT=587
heroku config:set REDASH_MAIL_SERVER=YOUR_ADDON_DOMAIN
heroku config:set REDASH_MAIL_USERNAME=YOUR_ADDON_USERNAME
heroku config:set REDASH_MAIL_USE_TLS=true
heroku config:set REDASH_REDIS_URL=YOUR_REDIS_URL
heroku config:set REDASH_SECRET_KEY=YOUR_SECRET_KEY
```See also https://redash.io/help/open-source/setup#-setup
### Release container
```sh
git push heroku master
```### Create database
After deploy and add postgres addon, create database like following.
```sh
heroku run /app/manage.py database create_tables
```### Enable worker dyno
```sh
heroku ps:scale worker=1
```## How to upgrade
```sh
heroku ps:scale web=0 worker=0
git push heroku master
heroku run /app/manage.py db upgrade
heroku ps:scale web=1 worker=1
```See also https://redash.io/help/open-source/admin-guide/how-to-upgrade