{"id":17874026,"url":"https://github.com/nigma/heroku-centrifuge","last_synced_at":"2026-01-16T00:54:11.982Z","repository":{"id":13120495,"uuid":"15802340","full_name":"nigma/heroku-centrifuge","owner":"nigma","description":"Python Centrifuge deployment on Heroku","archived":false,"fork":false,"pushed_at":"2014-01-10T16:49:33.000Z","size":126,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T14:21:49.343Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nigma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-10T15:57:49.000Z","updated_at":"2018-07-18T08:43:42.000Z","dependencies_parsed_at":"2022-09-05T12:00:20.273Z","dependency_job_id":null,"html_url":"https://github.com/nigma/heroku-centrifuge","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigma%2Fheroku-centrifuge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigma%2Fheroku-centrifuge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigma%2Fheroku-centrifuge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nigma%2Fheroku-centrifuge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nigma","download_url":"https://codeload.github.com/nigma/heroku-centrifuge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246911469,"owners_count":20853657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-28T11:07:21.894Z","updated_at":"2026-01-16T00:54:11.953Z","avatar_url":"https://github.com/nigma.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"heroku-centrifuge\n=================\n\nThis is a simple recipe for deploying Python [Centrifuge](https://github.com/FZambia/centrifuge)\non [Heroku](https://heroku.com/) PaaS.\n\nCentrifuge is an Open Source real-time messaging backend similar to\n[Pusher](http://pusher.com/), [Pubnub](http://www.pubnub.com/) or [Faye](http://faye.jcoglan.com/).\n\nThe end result will look like\n[centrifuge.herokuapp.com](https://centrifuge.herokuapp.com/) (admin password: ``password``).\n\n\n## Create Heroku app\n\nClone this repository or copy files to a new git repo and provision a new Heroku app.\n\n```\nheroku apps:create app-name\n```\n\n## Provision Heroku services\n\nStart with provisioning dev service plans:\n\n```\nheroku addons:add rediscloud:25\nheroku addons:add heroku-postgresql:hobby-dev\n```\n\nPromote created Postgres Database to default db:\n\n```\nheroku pg:promote HEROKU_POSTGRESQL_*_URL\n```\n\nEnable [websockets support](https://devcenter.heroku.com/articles/heroku-labs-websockets):\n\n```\nheroku labs:enable websockets\n```\n\n## Configure centrifuge\n\nUpdate `Procfile` and specify Redis connection settings or use ``--base``\noption for single-instance deployment.\n\nYou can look up RedisCloud host, port and password (skip username)\nusing ``heroku config`` command.\n\nDo the same for ``centrifuge.json`` and amend the file:\n\n```json\n{\n    \"password\": \"password\",\n    \"cookie_secret\": \"secret\",\n    \"api_secret\": \"secret\",\n    \"structure\": {\n        \"storage\": \"centrifuge.structure.postgresql.Storage\",\n        \"update_interval\": 60,\n        \"settings\": {\n            \"url\": \"$DATABASE_URL\"\n        }\n    },\n    \"state\": {\n        \"storage\": \"centrifuge.state.redis.State\",\n        \"settings\": {\n            \"host\": \"\u003credis host\u003e\",\n            \"port\": \u003credis port\u003e,\n            \"password\": \"\u003credis password\u003e\"\n        }\n    }\n}\n```\n\n## Deploy to Heroku\n\n```\ngit push heroku master\nheroku logs --tail\n```\n\n## Navigate to admin panel\n\nGo to *app-name.herokuapp.com* and configure project settings as\ndescribed in\n[centrifuge.readthedocs.org](https://centrifuge.readthedocs.org/en/latest/content/web_interface.html)\n\n\n## License\n\ndjango-herokuify is released into the Public Domain.\n\n\n## Contribute\n\nContribute to Centrifuge at [github.com/FZambia/centrifuge](https://github.com/FZambia/centrifuge).\n\nOpen pull requests to send updates for the heroku-centrifuge recipe.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnigma%2Fheroku-centrifuge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnigma%2Fheroku-centrifuge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnigma%2Fheroku-centrifuge/lists"}