Skip to content

Commit

Permalink
Readme updated
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricss committed Aug 16, 2012
1 parent 35a6cb3 commit 48be6c5
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
OPA on dotCloud!
Opa on dotCloud!
================

git clone git://github.com/samalba/opa-on-dotcloud.git
Minimal example
-------------------

git clone https://github.com/cedricss/opa-on-dotcloud.git
dotcloud create myapp
dotcloud push myapp opa-on-dotcloud

The repos contains an __app.opa__ example code. You can compile any OPA
source code.
The repos contains an simple `app.opa` example code (see below for a more complex app).

MVC wiki application
---------------------

To try a more complex example, checkout the `origin/wiki_mvc` branch and push:

cd opa-on-dotcloud
git checkout origin/wiki_mvc
dotcloud push myapp

This branch contains a `Makefile` and a `opa.conf`: those files are ready to be hacked to build a well-organized application.

Caveat
-------

__The first push is slow__ (several minutes) because OPA compiler is being
installed. Further pushes are faster.
- the first push is slow because Opa compiler is being installed the first time. Further pushes are faster.
- the database has to be named `admin` to use the default dotcloud authenfication to mongoDB.

0 comments on commit 48be6c5

Please sign in to comment.