Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Kinto/kinto-heroku
Deploy Kinto on Heroku via a one-click button
https://github.com/Kinto/kinto-heroku
Last synced: 9 days ago
JSON representation
Deploy Kinto on Heroku via a one-click button
- Host: GitHub
- URL: https://github.com/Kinto/kinto-heroku
- Owner: Kinto
- License: other
- Created: 2016-01-12T17:53:15.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-23T10:26:43.000Z (over 1 year ago)
- Last Synced: 2024-08-01T13:37:49.170Z (3 months ago)
- Language: Python
- Homepage:
- Size: 34.2 KB
- Stars: 11
- Watchers: 3
- Forks: 19
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Kinto for heroku
`kinto-heroku` is an example on how to use [Kinto](http://kinto-storage.org) and [Heroku](https://heroku.com) together.
Following the installation you should have a Kinto server available for you to use.## Installation
```
$ git clone http://github.com/Kinto/kinto-heroku.git kinto-instance && cd kinto-instance
$ heroku apps:create kinto-instance
$ heroku addons:create heroku-postgresql --app kinto-instance
$ git remote set-url heroku [email protected]:kinto-instance.git
$ git push heroku master
$ heroku open
```_N.B: changing the url to ssh instead of https is required if you are facing a `HTTP 400 Bad Request` error on `git push heroku master`._
[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.png)](https://dashboard.heroku.com/new?template=https://github.com/Kinto/kinto-heroku)
## How to upgrade / change configuration ?
First of all use the [heroku command](https://toolbelt.heroku.com/) to login:
```
$ heroku loginEnter your Heroku credentials.
Email: [email protected]
Password (typing will be hidden):
```Then clone this repository and link it to your heroku app (here named `myapp`):
```
$ git clone http://github.com/Kinto/kinto-heroku.git --depth=1 myapp
$ cd myapp
```(*optional*) Edit your configuration:
```
$
$ git commit -am "New setting"
```> Note: You can also edit the `requirements.txt` to add new dependencies / plugins.
Update the stack:
```
$ heroku git:remote -a myapp
$ git push -u heroku masterremote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Using set buildpack heroku/python
remote: -----> Python app detected
remote: $ pip install -r requirements.txt
remote:
remote: -----> Running post-compile hook
remote: /app/.heroku/python/lib/python2.7/site-packages/cliquet/storage/postgresql/client.py:87: UserWarning: Reuse existing PostgreSQL connection. Parameters permission_* will be ignored.
remote: warnings.warn(msg)
remote: /app/.heroku/python/lib/python2.7/site-packages/cliquet/storage/postgresql/client.py:87: UserWarning: Reuse existing PostgreSQL connection. Parameters cache_* will be ignored.
remote: warnings.warn(msg)
remote:
remote: -----> Discovering process types
remote: Procfile declares types -> web
remote:
remote: -----> Compressing...
remote: Done: 42.3M
remote: -----> Launching...
remote: Released v7
remote: https://myapp.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
```Done!