Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thermondo/heroku-buildpack-caddy
Run Caddy in Heroku
https://github.com/thermondo/heroku-buildpack-caddy
Last synced: about 1 month ago
JSON representation
Run Caddy in Heroku
- Host: GitHub
- URL: https://github.com/thermondo/heroku-buildpack-caddy
- Owner: thermondo
- License: gpl-3.0
- Created: 2024-07-23T15:07:11.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-29T11:57:06.000Z (5 months ago)
- Last Synced: 2024-07-29T14:47:18.031Z (5 months ago)
- Language: Shell
- Size: 21.5 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Heroku Caddy Buildpack
Run [Caddy](https://caddyserver.com/) in Heroku.
Built according to Heroku's [buildpack API](https://devcenter.heroku.com/articles/buildpack-api).
## Quick Start
Get the `buildpack.tar.gz` download URL from [the latest release](https://github.com/thermondo/heroku-buildpack-caddy/releases/latest).
It should look something like:```plaintext
https://github.com/thermondo/heroku-buildpack-caddy/releases/download/LATEST_VERSION_NUMBER/buildpack.tar.gz
```Then run:
```bash
heroku buildpacks:add
```Then in your app's [Procfile](https://devcenter.heroku.com/articles/procfile) add something like this:
```plaintext
web: caddy --config
```If you want to run a specific version of Caddy, set the `CADDY_RELEASE` environment variable on your
app as seen on [Caddy's GitHub releases](https://github.com/caddyserver/caddy/releases) (for
example: `v2.8.4`). Otherwise it will install the latest version of Caddy from GitHub.🚨 _If you choose to use the latest version of Caddy from GitHub, and there's a new **MAJOR** Caddy
release, this buildpack will **abort the build** with a helpful log message telling you what to do
in this case: Either pin the release you want with `CADDY_RELEASE` or check this repo for updates
that support the latest major version._## Developing
### Creating Releases
Go to [the release workflow](https://github.com/thermondo/heroku-buildpack-caddy/actions/workflows/release.yml)
and manually trigger a release. Specify an appropriate tag name using semantic versioning rules.Then go to the newly created draft release on the [releases page](https://github.com/thermondo/heroku-buildpack-caddy/releases),
polish it up, and publish it.