Skip to content

Commit 87215a1

Browse files
committed
Section 10.3 - Heroku Deployment Config
1 parent 6cd3645 commit 87215a1

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: gunicorn --pythonpath packages/ml_api --access-logfile - --error-logfile - run:application

jupyter_notebooks/requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
jupyter==1.0.0
2+
matplotlib==3.0.2
3+
pandas==0.23.4
4+
scikit-learn==0.20.2

packages/ml_api/requirements.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ flask==1.0.2
77
marshmallow==2.17.0
88

99
# Install from gemfury
10-
regression-model==1.0.0
10+
regression-model==1.0.0
11+
12+
# Deployment
13+
gunicorn==19.9.0

packages/ml_api/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from api.app import create_app
2-
from api.config import DevelopmentConfig
2+
from api.config import DevelopmentConfig, ProductionConfig
33

44

55
application = create_app(
6-
config_object=DevelopmentConfig)
6+
config_object=ProductionConfig)
77

88

99
if __name__ == '__main__':

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-r packages/ml_api/requirements.txt

0 commit comments

Comments
 (0)