0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-21 21:49:51 +01:00
posthog/app.json
Marius Andra 88ad205a3a
Separate Plugins dyno for Heroku (#2213)
* separate plugin worker for heroku

* plugin server for dev with less concurrency

* add back plugins script

* move beat log to beat

* move starting the beat into the celery worker

* add optional process types for plugins and celery

* premium redis for heroku review apps

* fix broken script

* proc/dyno names are alphanumeric

* singularize

* premium-0 redis for all heroku apps, not just review apps

* premium-0 redis also for review apps

* remove heroku redis modifications

* remove out of scope code

* run beat in bg
2020-11-20 10:42:59 +01:00

71 lines
1.8 KiB
JSON

{
"name": "PostHog - Product Analytics",
"website": "https://www.posthog.com",
"repository": "https://github.com/posthog/posthog",
"logo": "https://posthog.com/images/36f8ad157f42d4d48dc1de1db45802e1/posthog-icon-color.svg",
"environments": {
"review": {
"scripts": {
"postdeploy": "python manage.py setup_dev"
},
"env": {
"SELF_CAPTURE": true,
"SECRET_KEY": {
"generator": "secret"
}
},
"buildpacks": [{ "url": "heroku/nodejs" }, { "url": "heroku/python" }],
"formation": {
"web": {
"quantity": 1
},
"worker": {
"quantity": 1
},
"celeryworker": {
"quantity": 0
},
"pluginworker": {
"quantity": 0
}
}
},
"test": {
"addons": ["heroku-postgresql:in-dyno"],
"scripts": {
"test": "python manage.py test --keepdb -v 2"
},
"buildpacks": [{ "url": "heroku/python" }]
}
},
"buildpacks": [{ "url": "heroku/nodejs" }, { "url": "heroku/python" }],
"addons": [
"heroku-postgresql",
{
"plan": "heroku-redis",
"options": {
"maxmemory_policy": "allkeys-lru"
}
}
],
"formation": {
"web": {
"quantity": 1
},
"worker": {
"quantity": 1
},
"celeryworker": {
"quantity": 0
},
"pluginworker": {
"quantity": 0
}
},
"env": {
"SECRET_KEY": {
"generator": "secret"
}
}
}