Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cipherstash/heroku-buildpack
https://github.com/cipherstash/heroku-buildpack
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cipherstash/heroku-buildpack
- Owner: cipherstash
- Created: 2023-11-23T08:03:22.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2023-11-27T00:42:29.000Z (12 months ago)
- Last Synced: 2024-04-24T04:34:12.614Z (7 months ago)
- Language: Shell
- Size: 11 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Heroku Buildpack for CipherStash Tandem
Deploy [Tandem](https://cipherstash.com/products/tandem) to Heroku with this Buildpack.
It adds the `tandem` binary which can be run as a worker process.## Deploying
If you have an existing app in Heroku, you can add this buildpack:
```
heroku buildpacks:add https://github.com/cipherstash/heroku-buildpack
```This will add this buildpack to your app, alongside any others you might already have.
To start Tandem, you must add an entry to your `Procfile`.
See the [Heroku docs](https://devcenter.heroku.com/articles/procfile) for more info.```sh
# Existing web worker (example)
web: bundle exec rails server -p $PORT
# Add this line
worker: tandem
```Commit the change to your Procfile and push to Heroku.
```sh
git add Procfile
git commit -m "Added tandem worker to Heroku Procfile"
git push heroku main
```### Scaling the worker
To spin up a Tandem Dyno instance, you need to scale to at least one worker.
```sh
heroku ps:scale worker=1
```And you should see something like the following:
```sh
heroku ps
=== web (Basic): bundle exec rails server -p $PORT (1)
web.1: up 2023/11/27 08:00:04 +1100 (~ 26s ago)=== worker (Basic): tandem (1)
worker.1: restarting 2023/11/27 08:00:29 +1100 (~ 1s ago)
```