MCViz as a Service! Written with python-flask. Take a look at an example and try for yourself at mcviz.skoorb.net.
Check out from github and bootstrap an enviroment:
git clone git://gihub.com/brookst/mcviz.web ./bootstrap.py
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/
Install mod_wsgi using the installation instructions. Add the following rule to your Apache config:
<VirtualHost *:80> ServerName mcviz.example.com WSGIDaemonProcess mcwebviz user=flask group=www-data threads=5 home=/path/to/mcviz.web WSGIScriptAlias / /path/to/mcviz.web/mcwebviz.wsgi <Directory /path/to/mcviz.web> WSGIProcessGroup mcwebviz WSGIApplicationGroup %{GLOBAL} WSGIScriptReloading On Order deny,allow Allow from all </Directory> </VirtualHost>
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:
# apache2ctl configtest && apache2ctl restart
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.
Let us know if you would like to host a site at dev@mcviz.net.
MCWebViz by Tim Brooks. Based upon MCViz by Johannes Ebke, Peter Waller and Tim Brooks. Both projects are licensed under the GNU Affero GPLv3.