Giter Club home page Giter Club logo

kinto-heroku's Introduction

Kinto for heroku

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 [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

How to upgrade / change configuration ?

First of all use the heroku command to login:

$ heroku login

Enter 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:

$ <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!

kinto-heroku's People

Contributors

almet avatar cyberdelia avatar enguerran avatar gabisurita avatar glasserc avatar leplatrem avatar mlandauer avatar natim avatar trickypr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.