Horizon is the Stackato dashboard for reporting a) the state of the cloud and b) real-time operations statistics. The former presents data from the cloud controller's database, while the later does real-time processing of the log files just like Heroku's pulse.
Horizon was the first revision of a dashboard application, developed within ActiveState, for Stackato. Stackato uses a different implementation of dashboard now, and so Horizon is open sourced for anyone to use on top of their Stackato or Cloud Foundry (on which, Stackato is based upon) install.
Get a micro cloud VM running at
stackato.local and then:
$ ssh-copy-id firstname.lastname@example.org # one-time $ script/bootstrap # one-time $ script/watch # leave this running on a different terminal if you are changing sass/cljs $ script/run
Open http://localhost:8000/ and deploy some apps to your micro cloud.
$ script/bootstrap $ script/run <mode>
<mode> can be one of:
sandbox-- runs Horizon against the sandbox (requries ec2 files -- see below).
inside_micro-- assuming Horizon is run from within a micro cloud VM
outside_micro-- runs Horizon against a micro cloud VM running on your host. VM host can be specified as an additional argument.
The default is
For sandbox mode, first get ~/.ec2 and ~/Downloads/ec2-??? (ask srid).
lein run is not most suited for development if you are going to
edit/recompile the modules.
$ script/boostrap $ script/watch # leave this running on a second terminal
The watch script watches and compiles sass and cljs files to css and js.
src/clj/horizon/core.clj in Emacs,
C-k the core.clj buffer and then eval the following in REPL:
(horizon.core/initialize) ;; equivalent to `lein run`
lein uberjar [...] java -jar horizon-1.0.0-SNAPSHOT-standalone.jar [...]
Copyright (C) 2011 ActiveState Software Inc