forked from samalba/opa-on-dotcloud
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |