Permalink
Commits on Mar 28, 2012
  1. add greins.app.GreinsLogger

    This change makes it easier to use the gunicorn log for application
    messages. Everything is overridable and configurable as before, but by
    default greins will use a new logging class, `greins.GreinsLogger`.
    
    The `GreinsLogger` class is just like the logger from gunicorn, except
    it configures a handler on the root logger which forwards to the
    handler for the 'gunicorn.error' logger and uses a formatter that
    includes the package name of the source of each log message.
    
    Reported by Mark Doliner (#14).
    Randall Leeds committed with tilgovi Mar 27, 2012
Commits on Mar 27, 2012
  1. fix debug route logging

    Change two things about logging routes during debug startup
    - Don't log the routes until all the apps have loaded
    - Don't try to use the app __name__ since it may not exist
    tilgovi committed Mar 27, 2012
  2. add example showing root route

    Randall Leeds committed Mar 27, 2012
  3. fix SCRIPT_NAME and PATH_INFO handling slashes

    PATH_INFO can contain a trailing slash but SCRIPT_NAME never does.
    Rework that logic. Remove trailing slashes on mount points and switch
    to warning when they are encountered. Continue to warn and fix when
    mounts fail to begin with slashes (with the exception of the empty,
    root route).
    Randall Leeds committed Mar 27, 2012
  4. remove dead code

    I'm not sure what inspired this environment wrapping comment and
    idea, but it doesn't appear to be necessary.
    Randall Leeds committed Mar 27, 2012
Commits on Oct 19, 2011
  1. bump and tag v0.2.1

    Randall Leeds committed Oct 19, 2011
Commits on Oct 12, 2011
  1. make conflicting routes a fatal error again

    It is not sufficient to throw a warning, since developers might not
    examine the logs. Removing all conflicting routes is easy for
    duplicates, but requires more tracking for triplicates, however
    unlikely that might be. In any case, any 'solution' feels like a
    band-aid and caters too much to lazy developers.
    Randall Leeds committed Oct 12, 2011
  2. ignore a silly warning using default mounts

    Randall Leeds committed Oct 12, 2011
Commits on Oct 11, 2011
  1. Try to load an app by name when mounts are empty

    If a config file does not specify a mounts dictionary, greins will now
    try to load the application by looking for a module whose name matches
    the config file's name and looking for a symbol within called
    'application' that is a callable WSGI handler.
    
    This change means that developers can use this naming convention to
    seamlessly import apps into greins without changing any files.
    Randall Leeds committed Oct 11, 2011
  2. trivial prettify

    Randall Leeds committed Oct 11, 2011
  3. fix #12 - reload fails with gevent

    Wait until application load time, after the fork, to import threading
    in order to synchronize the parallel loading of apps from the conf
    directory.
    Randall Leeds committed Oct 11, 2011
  4. fix #13 - add basic examples

    Randall Leeds committed Oct 11, 2011
Commits on Sep 27, 2011
  1. Merge pull request #10 from emezeske/master

    Fix a race condition that shows up occasionally when installing via puppet
    tilgovi committed Sep 27, 2011
Commits on Sep 26, 2011
  1. bump to 0.2.0

    Randall Leeds committed with emezeske Sep 19, 2011
  2. Wait for greins to start before returning.

    This prevents a race that comes up if, for instance, the following
    commands are run in sequence:
    
        /etc/init.d/greins restart
        /etc/init.d/greins reload
    
    Before this change, the reload will fail sometimes because greins is
    not yet running.  Now, the restart doesn't return until greins has
    daemonized and written out its pidfile.
    emezeske committed Sep 26, 2011
Commits on Sep 19, 2011
  1. bump to 0.2.0

    Randall Leeds committed Sep 19, 2011
  2. Merge pull request #8 from emezeske/master

    Make app startup more threadsafe
    tilgovi committed Sep 19, 2011
Commits on Sep 15, 2011
  1. fix 404 error

    Randall Leeds committed Sep 15, 2011
Commits on Sep 14, 2011
  1. bump and tag 0.1.99.8

    Randall Leeds committed Sep 14, 2011
  2. fix for new logging interface in gunicorn 0.13

    Randall Leeds committed Sep 14, 2011
Commits on Sep 8, 2011
  1. bump and tag v0.1.99.7

    Randall Leeds committed Sep 8, 2011
  2. add emezeske to THANKS

    Randall Leeds committed Sep 8, 2011
  3. Merge pull request #7 from emezeske/master

    Various fixes to the reloader
    tilgovi committed Sep 8, 2011
  4. Set the Reloader thread to daemon mode, to avoid

    hanging things at exit/restart.
    emezeske committed Sep 8, 2011
Commits on Aug 10, 2011
  1. fix unlikely race condition

    tilgovi committed Aug 10, 2011
  2. add THANKS for contributors

    tilgovi committed Aug 10, 2011
  3. Merge pull request #5 from srlindsay/master

    Isolate app startup
    tilgovi committed Aug 10, 2011
  4. needed to import threading

    Shaun Lindsay committed Aug 10, 2011
  5. isolate app startup in seperate threads

    Shaun Lindsay committed Aug 10, 2011
Commits on Jul 20, 2011
  1. bump and tag v0.1.99.5

    tilgovi committed Jul 20, 2011