This repository has been archived by the owner. It is now read-only.
Code for the Flying Squirrel demo sites
JavaScript Python HTML ApacheConf CSS Makefile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
channels
cursors
mud
.hgignore
README.txt
channels.conf
crontab
fabfile.py
mud.conf
requirements.txt
run.py

README.txt

To run the stuff locally:

    virtualenv venv
    . venv/bin/activate
    pip install -r requirements.txt


To run mud:

    . venv/bin/activate
    cd mud
    ln -s settings_local_devel.py settings_local.py
    ./manage.py syncdb --noinput
    ./manage.py loaddata core/rooms.json
    ./manage.py createsuperuser --username=admin --email=a@b.co.uk
    ./manage.py runserver 0.0.0.0:8000

And on the second console:

    while [ 1 ]; do curl http://127.0.0.1:8000/tick; echo; sleep 10; done

In order to save data:

    ./manage.py dumpdata \
        --format=json \
        --indent=4 core > /tmp/rooms.json

To run the channels:

   . venv/bin/activate
   cd channels
   ln -s config_local.py config.py
   python site.py