https://github.com/http4k/http4k-heroku-travis-example-app
An http4k app that can be continuously deployed to Heroku via TravisCI
https://github.com/http4k/http4k-heroku-travis-example-app
Last synced: 7 months ago
JSON representation
An http4k app that can be continuously deployed to Heroku via TravisCI
- Host: GitHub
- URL: https://github.com/http4k/http4k-heroku-travis-example-app
- Owner: http4k
- Created: 2017-06-24T04:59:54.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-05-12T17:11:14.000Z (about 6 years ago)
- Last Synced: 2025-06-12T07:32:49.919Z (12 months ago)
- Language: Shell
- Size: 65.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# http4k + Heroku + Travis
[](https://travis-ci.org/http4k/http4k-heroku-travis-example-app)
This application gets deployed to Heroku on every push to GitHub
## Pre-requisites
You need to have installed:
* [Heroku Toolbelt](https://devcenter.heroku.com/articles/heroku-cli#download-and-install)
* [Travis CLI](https://github.com/travis-ci/travis.rb#installation)
## Getting Started
* Fork this repo
* Configure [Travis](https://travis-ci.org) to build the new repo
* Create your Heroku app:
```bash
heroku apps:create my-awesome-app
```
* Update the `app` entry in .travis.yml
* Update the deployment credentials
```bash
travis encrypt $(heroku auth:token) --add deploy.api_key
```
* Commit and push your changes to GitHub:
```bash
git commit -am"Update travis config"
git push origin master
```
This will automatically trigger a new build and deployment of your app.
## Running it locally
```bash
./gradlew stage
heroku local web
```
The app will be available on [http://localhost:5000](http://localhost:5000)
## Deploying it manually
```bash
git push heroku master
```