Skip to content

Commit

Permalink
adding some info about running in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
anutron committed Apr 20, 2010
1 parent 7b077f4 commit 0b6c65c
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions README.md
Expand Up @@ -6,13 +6,13 @@ This application generates concatenated libraries from multiple JavaScript files
Quick Start (Django version)
-----------

$ git clone http://github.com/anutron/mootools-depender.git
$ git submodule update --init
$ virtualenv env
$ env/bin/python django/depender/setup.py develop
$ env/bin/python django/mootools/manage.py runserver

Then open [http://localhost:8000/depender/build?requireLibs=Core] to get MooTools Core.
$ git clone http://github.com/anutron/mootools-depender.git
$ git submodule update --init
$ virtualenv env
$ env/bin/python django/depender/setup.py develop
$ env/bin/python django/mootools/manage.py runserver
Then open http://localhost:8000/depender/build?requireLibs=Core to get MooTools Core.

Overview
-------
Expand Down Expand Up @@ -102,7 +102,7 @@ Configuring the MooTools Depender Project

Inside of `django/mootools` you'll find `settings.py`. This file contains all the configuration options for the simple "mootools" project which includes the Depender app. You'll find the following options that you may set:

- DEPENDER_DEBUG - set to `True` (the default) if you want Depender to always load scripts from the disk (i.e. disable memory caching). This also disabled compression. Note that this is somewhat slow-ish, as every request requires the app to load ALL the JS into memory.
- DEPENDER_DEBUG - set to `True` (the default) if you want Depender to always load scripts from the disk (i.e. disable memory caching). This also disabled compression. Note that this is somewhat slow-ish, as every request requires the app to load ALL the JS into memory. **Note** you can set this as an environment variable if you prefer.
- DEPENDER_PACKAGE_YMLS - a list of package.yml files to include; defaults to the submodules included in this repository (MooTools Core and MooTools More) as well as the Depender Client.
- DEPENDER_SCRIPTS_JSON - a list of scripts.json manifest files (these are deprecated manifests from < Mootools 1.3 era).
- DEPENDER_YUI_PATH - the path to the YUI compressor jar.
Expand Down Expand Up @@ -130,6 +130,10 @@ To run the Django depender server you should simply run this from the command li
$ env/bin/python django/depender/setup.py develop
$ env/bin/python django/mootools/manage.py runserver

If you want you can force the server to run in debug mode like so:

$ DESKTOP_DEPENDER_DEBUG=1 env/bin/python django/mootools/manage.py runserver

For more about virtualenv see [http://pypi.python.org/pypi/virtualenv](http://pypi.python.org/pypi/virtualenv). Once you've started the server you should be able to hit it with a request for some JS. Like this:

http://localhost:8000/depender/build?requireLibs=Core
Expand Down

0 comments on commit 0b6c65c

Please sign in to comment.