Skip to content

Commit a73a92b

Browse files
author
naveen yannamani
committed
caravel on heroku
0 parents  commit a73a92b

File tree

6 files changed

+83
-0
lines changed

6 files changed

+83
-0
lines changed

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: caravel runserver -p $PORT

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# [Caravel](https://github.com/airbnb/caravel) on [Heroku](http://heroku.com)
2+
3+
Caravel is a data exploration platform designed to be visual, intuitive, and interactive. Visit the project's website at <http://airbnb.io/caravel>
4+
5+
## Deploying on Heroku
6+
7+
To get your own Caravel App running on Heroku, click the button below:
8+
9+
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/neevany/caravel-on-heroku)
10+
11+
Fill out the form, and later you should be performing analytics at the speed of thought.
12+
13+
### Things you should know
14+
##### After deployment
15+
16+
- caravel will be accessible at `YOURAPPNAME.herokuapp.com`.
17+
18+
- To make changes to your app like creating admin user, clone your app locally using the [Heroku Toolbelt](https://toolbelt.heroku.com/):
19+
20+
```sh
21+
heroku git:clone --app YOURAPPNAME
22+
```
23+
- Create an Admin user by using
24+
25+
```sh
26+
heroku run bash --app YOURAPPNAME
27+
fabmanager create-admin --app caravel
28+
caravel db upgrade
29+
caravel init
30+
```
31+
32+
- Load Examples
33+
```sh
34+
caravel load_examples
35+
```
36+
- Check Papertrail logs for debugging any errors.
37+
38+
### How this works
39+
40+
This repository is essentially a minimal web application that specifies [Caravel as a dependency](https://github.com/airbnb/caravel), and makes a deploy button available.
41+
42+
## Problems?
43+
44+
If you have problems using your instance of Caravel, you should check the [official documentation](http://airbnb.io/caravel/installation) or open an issue on [issue tracker](https://github.com/airbnb/caravel/issues). If you discover an issue with the deployment process provided by *this repository*, then [open an issue here](https://github.com/neevany/caravel-on-heroku/issues).

app.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "Caravel on Heroku",
3+
"description": "Data exploration platform designed to be visual, intuitive, and interactive",
4+
"logo": "https://cdn.rawgit.com/airbnb/caravel/master/caravel/assets/images/caravel_logo.png",
5+
"repository": "https://github.com/neevany/caravel-on-heroku",
6+
"addons": [
7+
"jawsdb",
8+
"papertrail"
9+
]
10+
}

caravel_config.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import os
2+
#---------------------------------------------------------
3+
# Caravel specific config
4+
#---------------------------------------------------------
5+
# ROW_LIMIT = 5000
6+
CARAVEL_WORKERS = 1 # for it to work in heroku basic/hobby dynos increase as you like
7+
8+
# CARAVEL_WEBSERVER_PORT = 8088
9+
#---------------------------------------------------------
10+
11+
#---------------------------------------------------------
12+
# Flask App Builder configuration
13+
#---------------------------------------------------------
14+
# Your App secret key
15+
SECRET_KEY = '\2\1thisismyscretkey\1\2\e\y\y\h' # noqa
16+
17+
# The SQLAlchemy connection string to your database backend
18+
# This connection defines the path to the database that stores your
19+
# caravel metadata (slices, connections, tables, dashboards, ...).
20+
# Note that the connection information to connect to the datasources
21+
# you want to explore are managed directly in the web UI
22+
SQLALCHEMY_DATABASE_URI = os.environ['JAWSDB_URL']
23+
24+
# Flask-WTF flag for CSRF
25+
CSRF_ENABLED = True

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
caravel==0.10.0
2+
mysqlclient==1.3.7

runtime.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python-2.7.12

0 commit comments

Comments
 (0)