Skip to content

Commit 6110631

Browse files
committed
fix: make 'server' directory Heroku deployable (moving files to root)
Heroku expects the root directory to contain the details on how to deploy the application. In this case we have a monorepo, but we want the 'server' directory to be deployed. To further complicate the situation the 'shared' directory on the root level that is needed for the server due to how we have the dependencies laid out. The temporary solution is to move the required files up from the 'server' directory into the root. This way we heroku will deploy the application (although the rest of the source files are still present). One approach I want to try later is to have this somehow handled with Docker, and just have a deployable container for the application.
1 parent 46b538a commit 6110631

File tree

6 files changed

+5
-4
lines changed

6 files changed

+5
-4
lines changed

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: gunicorn --preload --chdir ./server/src api:app
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "notion-heroku",
2+
"name": "notion-tools",
33
"description": "Heroku hosted application that performs Notion actions (i.e., new task, new note) based on voice requests via IFTTT Webhooks and Google Assistant.",
4-
"repository": "https://github.com/kevinjalbert/notion-heroku",
4+
"repository": "https://github.com/kevinjalbert/notion-tools",
55
"keywords": ["notion", "google assistant", "ifttt"]
66
}

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-r ./server/requirements.txt
File renamed without changes.

server/Procfile

Lines changed: 0 additions & 1 deletion
This file was deleted.

server/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ Flask==1.0.3
55
gunicorn==19.9.0
66
Flask-APScheduler==1.11.0
77
requests==2.22.0
8-
-e ../shared
8+
-e ./shared

0 commit comments

Comments
 (0)