Skip to content

Deploy Kinto on Heroku via a one-click button

License

Notifications You must be signed in to change notification settings

puttu/kinto-dokku

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kinto for dokku

This is a simple fork of kinto-heroku adapted for dokku. At this point part of the setup has to be executed manually. Assuming that kinto is the name of your dokku app and both dokku and dokku-postgres and dokku-letsencrypt plugins are installed:

on remote server:

dokku apps:create kinto
dokku postgres:create kinto
dokku postgres:link kinto kinto
dokku config:set kinto KINTO_USERID_HMAC_SECRET=`openssl rand -base64 32`
dokku letsencrypt kinto

on your computer:

git clone https://github.com/puttu/kinto-dokku
cd kinto-dokku
git remote add dokku dokku@YOUR_DOKKU_SERVER:kinto
git push dokku master

The kinto-heroku readme follows.


kinto-heroku is an example on how to use Kinto and Heroku 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 git@heroku.com: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

How to upgrade / change configuration ?

First of all use the heroku command to login:

$ heroku login

Enter your Heroku credentials.
Email: you@mail.com
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:

$ <Edit kinto.ini with your new settings>
$ 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 master

remote: 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!

About

Deploy Kinto on Heroku via a one-click button

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 58.3%
  • Shell 41.7%