Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Running a jython app on dotCloud
branch: master

This branch is 1 commit ahead, 1 commit behind kencochrane:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
jython
.gitignore
README.rst
__init__.py
dotcloud.yml
postinstall
requirements.txt
rocket_server.py
wsgi.py

README.rst

jython-on-dotcloud custom service

This is a beta version of the custom Jython service on dotCloud. It is very basic, and pretty much just a proof of concept, but it should show you what you need to do in order to get off the ground.

The example here is using Jython and the Rocket web server to serve up a simple wsgi hello world app. Most people wouldn't be using Jython like this, but we wanted to show you it could be done. You could use the same idea to run Jython workers, or any other Jython process.

Feel free to use, but keep your eyes open for issues. If you find any issues please report them.

How it works

We are using nginx as the front end reverse proxy, it is serving all static media as well proxying all other requests to a rocket web server process running a simple wsgi application running on Jython.

How to use

  1. Clone this repo:

    $ git clone git://github.com/kencochrane/jython-on-dotcloud.git

  2. Create a dotcloud app (assuming you already have a dotcloud account and have the dotcloud client installed):

    $ dotcloud create jythonapp

  3. Makes changes to the repo locally, git commit your changes

  4. Push your app to dotcloud:

    $ dotcloud push jythonapp .

Versions

  • Jython 2.5.2
  • java 1.6.0_20
  • nginx 1.0.13
  • Rocket 1.2.4

Links

Something went wrong with that request. Please try again.