Skip to content
This repository

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 0 commits ahead and 0 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 jython
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.rst
Octocat-spinner-32 __init__.py
Octocat-spinner-32 dotcloud.yml
Octocat-spinner-32 postinstall
Octocat-spinner-32 requirements.txt
Octocat-spinner-32 rocket_server.py
Octocat-spinner-32 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.