Giter Club home page Giter Club logo

platform-django-example's Introduction

Example paas django app

This is an example web application based on django and django-edge project, ready to be used to deploy your own webapp on Synnefo PaaS service.

Quick start

  • Install the deis client:

    $ curl -sSL http://deis.io/deis-cli/install.sh | sh $ mv deis

  • Login to the Synnefo PaaS using your API credentials

    $ deis login https://deis.platform.demo.synnefo.org

  • Add your public ssh key to be able to push to the PaaS git remote

    $ deis keys:add

  • Clone the example project

    $ git clone https://github.com/grnet/platform-django-example my-django-app $ cd my-django-app

  • Create a new application using,

    $ deis create my-django-app -r paas

  • Initialize your application configuration

    $ deis config:set SECRET_KEY="" $ deis config:set PYTHONUNBUFFERED=True $ deis config:set ALLOWED_HOSTS="localhost,my-django-app.platform.demo.synnefo.org" $ deis config:set ENVIRONMENT=production $ deis config:set PG=enabled

  • The last setting will create and initialize a postgresql database to be used
    from your running application.

  • At last push your application code to the PaaS service

    $ git push paas

  • You may now initialize your database by running

    $ deis run

Management

  • Use "deis logs" to view the logs of your application
  • Use "deis scale web=X" to scale up/down your application processes

platform-django-example's People

Contributors

vinilios 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.