From b189cae449772c81fd64e86ca7fe704b28f0b4a7 Mon Sep 17 00:00:00 2001 From: pablohashescobar Date: Fri, 16 Dec 2022 11:45:38 +0530 Subject: [PATCH 1/3] build: create procfile for deployments to heroku --- Procfile | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Procfile diff --git a/Procfile b/Procfile new file mode 100644 index 000000000..8b63cf98c --- /dev/null +++ b/Procfile @@ -0,0 +1,3 @@ +web: node apps/app/server.js +backend_web: cd apiserver && gunicorn plane.wsgi -k gthread --workers 8 --bind 0.0.0.0:$PORT --config gunicorn.config.py --max-requests 10000 --max-requests-jitter 1000 --access-logfile - +worker: cd apiserver && python manage.py rqworker \ No newline at end of file From e8249ee0f32dd0aaa056ba0457c06019296f78c6 Mon Sep 17 00:00:00 2001 From: pablohashescobar Date: Fri, 16 Dec 2022 22:41:06 +0530 Subject: [PATCH 2/3] build: update app.json add buildpacks --- app.json | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/app.json b/app.json index 34941e9ab..c108979b8 100644 --- a/app.json +++ b/app.json @@ -8,13 +8,21 @@ "stack": "container", "keywords": ["plane", "project management", "django", "next"], "addons": ["heroku-postgresql:mini", "heroku-redis:mini"], + "buildpacks": [ + { + "url": "https://github.com/heroku/heroku-buildpack-python.git" + }, + { + "url": "https://github.com/heroku/heroku-buildpack-nodejs#v176" + } + ], "env": { "EMAIL_HOST": { "description": "Email host to send emails from", "value": "" }, "EMAIL_HOST_USER": { - "description" : "Email host to send emails from", + "description": "Email host to send emails from", "value": "" }, "EMAIL_HOST_PASSWORD": { @@ -22,7 +30,7 @@ "value": "" }, "AWS_REGION": { - "description" : "AWS Region to use for S3", + "description": "AWS Region to use for S3", "value": "false" }, "AWS_ACCESS_KEY_ID": { @@ -66,4 +74,4 @@ "value": "" } } -} \ No newline at end of file +} From 1367965088f9ff25245cef9bfd86120322d0a759 Mon Sep 17 00:00:00 2001 From: pablohashescobar Date: Fri, 16 Dec 2022 22:45:33 +0530 Subject: [PATCH 3/3] build: update thestack in heroku app.json --- app.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.json b/app.json index c108979b8..017911920 100644 --- a/app.json +++ b/app.json @@ -5,7 +5,7 @@ "logo": "https://avatars.githubusercontent.com/u/115727700?s=200&v=4", "website": "https://plane.so/", "success_url": "/", - "stack": "container", + "stack": "heroku-22", "keywords": ["plane", "project management", "django", "next"], "addons": ["heroku-postgresql:mini", "heroku-redis:mini"], "buildpacks": [