Skip to content

Commit

Permalink
Deploy to heroku button (#459)
Browse files Browse the repository at this point in the history
* Add "Deploy to Heroku" button to README.md

* Make "Deploy to Heroku" button open a new browser tab

* Fixing markdown typo in Deploy to Heroku button

* Revert changes for opening Heroku in a new tab

apparently Github doesn't support it

* Add Instructions for Deploy to Heroku button

* Add deploy button to instruction page

* Removed button on the instruction page because it only works at the project root

* Fixed some markdown lint errors

* Fixed more MD lint issues

* Added Procfile.txt

* Removed .txt file extension from Procfile

* Add TABPY_PORT env var and copy $PORT value to it after deploy

* Removed static config for Port env var from app.json

The port is dynamic and needs to be set on deploy via

* Moved dynamic Port env var assignment to Procfile

* Added a bit more detail to the instructions

* Removed an extra empty line in app.json

Co-authored-by: Jim Liu <[email protected]>
  • Loading branch information
ChairmanMa0 and Jim Liu authored Oct 8, 2020
1 parent 395373f commit f891366
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: export TABPY_PORT=$PORT && tabpy
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/tabpy?label=PyPI%20Python%20versions)
[![PyPI version](https://badge.fury.io/py/tabpy.svg)](https://pypi.python.org/pypi/tabpy/)

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)

TabPy (the Tableau Python Server) is an Analytics Extension implementation which
expands Tableau's capabilities by allowing users to execute Python scripts and
saved functions via Tableau's table calculations.
Expand All @@ -21,6 +23,7 @@ Consider reading TabPy documentation in the following order:
* [TabPy Installation Instructions](docs/server-install.md)
* [TabPy Server Configuration Instructions](docs/server-config.md)
* [Running TabPy in Virtual Environment](docs/tabpy-virtualenv.md)
* [Running TabPy on Heroku](docs/deploy-to-heroku.md)
* [Authoring Python calculations in Tableau](docs/TableauConfiguration.md).
* [TabPy Tools](docs/tabpy-tools.md)

Expand Down
7 changes: 7 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "TabPy",
"description": "Analytics Extension implementation which expands Tableau's capabilities by allowing users to execute Python scripts and saved functions via Tableau's table calculations.",
"repository": "https://github.com/tableau/TabPy",
"logo": "",
"keywords": ["tableau", "python", "analytics-extension"]
}
11 changes: 11 additions & 0 deletions docs/deploy-to-heroku.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Deploying TabPy to your Heroku account

To deploy TabPy from master branch to a Heroku account:

1. Log in to Heroku with your account via a browser.
If you don't have an account, create one.

2. Click the "Deploy to Heroku" button in the Readme.

3. Configure the new TabPy server by setting environment
variables through Heroku's web console or API.

0 comments on commit f891366

Please sign in to comment.