aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hackinghowto.rst
diff options
context:
space:
mode:
authorcfdv <caldavis@gmail.com>2011-06-19 17:39:32 -0500
committercfdv <caldavis@gmail.com>2011-06-19 17:39:32 -0500
commit0e66e6a6c6e60b8cc7c4ab1fc0c443c5b8234ada (patch)
tree7a0936a9a83f9f39a090f96e41a274ac77ddaee4 /docs/hackinghowto.rst
parente8fda91bc2326911ea9a0197e595bc333540c282 (diff)
parent188240e312b8c5ff50bef276c97b36e5b3835f1e (diff)
downloadmediagoblin-0e66e6a6c6e60b8cc7c4ab1fc0c443c5b8234ada.tar.lz
mediagoblin-0e66e6a6c6e60b8cc7c4ab1fc0c443c5b8234ada.tar.xz
mediagoblin-0e66e6a6c6e60b8cc7c4ab1fc0c443c5b8234ada.zip
Merge branch 'is330', remote-tracking branch 'origin/master' into is330
Diffstat (limited to 'docs/hackinghowto.rst')
-rw-r--r--docs/hackinghowto.rst36
1 files changed, 19 insertions, 17 deletions
diff --git a/docs/hackinghowto.rst b/docs/hackinghowto.rst
index d8bb9330..fcab5844 100644
--- a/docs/hackinghowto.rst
+++ b/docs/hackinghowto.rst
@@ -123,40 +123,42 @@ To do this, do::
Running the server
==================
-Run::
+If you want to get things running quickly and without hassle, just
+run::
+
+ ./lazyserver.sh
+
+This will start up a python server where you can begin playing with
+mediagoblin. It will also run celery in "always eager" mode so you
+don't have to start a separate process for it.
+
+This is fine in development, but if you want to actually run celery
+separately for testing (or deployment purposes), you'll want to run
+the server independently::
- ./bin/paster serve mediagoblin.ini --reload
+ ./bin/paster serve server.ini --reload
Running celeryd
===============
-You need to do this if you want your media to process and actually
-show up. It's probably a good idea in development to have the web
-server (above) running in one terminal and celeryd in another window.
+If you aren't using ./lazyserver.sh or otherwise aren't running celery
+in always eager mode, you'll need to do this if you want your media to
+process and actually show up. It's probably a good idea in
+development to have the web server (above) running in one terminal and
+celeryd in another window.
Run::
CELERY_CONFIG_MODULE=mediagoblin.celery_setup.from_celery ./bin/celeryd
-Too much work? Don't want to run an http server and celeryd at the
-same time? For development purposes there's a shortcut::
-
- CELERY_ALWAYS_EAGER=true ./bin/paster serve mediagoblin.ini --reload
-
-This way the web server will block on processing items until they are
-done, but you don't need to run celery separately (which is probably
-good enough for development purposes, but something you almost
-certainly shouldn't do in production).
-
-
Running the test suite
======================
Run::
- CELERY_CONFIG_MODULE=mediagoblin.celery_setup.from_tests ./bin/nosetests
+ ./bin/nosetests
Running a shell