Check out from github and bootstrap an enviroment::
git clone git://gihub.com/brookst/mcviz.web
./bootstrap.py
VirtualEnv
----------
`VirtualEnv`_ makes setting up python package dependencies much easier. To install; see the `Virtual env docs`_. `VirtualEnv`_ is packaged as `python-virtualenv`_ on `Ubuntu`_ systems.
Set up a virtual environment using the following::
mkvirtualenv -a `pwd` -r requirements.txt mcviz.web
workon mcviz.web
Standalone running
------------------
Run the ``dev_serve`` script as::
./dev_serve
Messages will be printed to the console and the application will be available on http://localhost:5000/
Apache mod_wsgi running
-----------------------
Install `mod_wsgi`_ using the `installation instructions`_. Add the following rule to your Apache config::
To deactivate the `VirtualEnv`_, run ``deactivate``. To work on the environment again; run ``workon mcviz.web`` again.
Make sure to change ``example.com`` to your domain, create the user ``flask`` and the group ``www-data`` (if needed), and replace (3) instances of ``/path/to/mcviz.web``.
You can then test your configuration and reload apache with::
`VirtualEnv`_ makes setting up python package dependencies much easier. The ``bootstrap.py`` script creates a standalone environment in the ``env`` directory. To work with the environment, you can ``source env/bin/activate`` in bash. To deactivate the `VirtualEnv`_, call ``deactivate``.
* MCWebViz is hosted by the author at `mcviz.skoorb.net`_.
python mcwebviz.py
Let us know if you would like to host a site at `dev@mcviz.net`_.
Messages will be printed to the console and the application will be available on http://localhost:5000/
.. _dev@mcviz.net: mailto:dev@mcviz.net
.. _mcviz.skoorb.net: http://mcviz.skoorb.net
Attribution
===========
MCWebViz by `Tim Brooks`_. Based upon `MCViz`_ by Johannes Ebke, Peter Waller and `Tim Brooks`_. Both projects are licensed under the `GNU Affero GPLv3`_.
`MCViz`_ by Johannes Ebke, Peter Waller and Tim Brooks. Licensed under AGPLv3.