Changes in / [bf51993:73f2e78]


Ignore:
Location:
src/gnuboat/mapservice_impl
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/gnuboat/mapservice_impl/__init__.py

    rbf51993 r73f2e78  
    9393        else:
    9494            db_setup()
     95
     96
     97def gunicorn_app():
     98    template_folder = os.path.join(os.path.dirname(__file__), 'templates')
     99    setup_app(
     100        'GNUBoat Mapservice API',
     101        config_object,
     102        template_folder=template_folder
     103    )
     104    return app
  • src/gnuboat/mapservice_impl/config.py

    rbf51993 r73f2e78  
    6464
    6565class ProductionConfig(Config):
    66     SQLALCHEMY_DATABASE_URI = ('mysql+mysqldb://gnuboat:gnuboat@localhost/'
     66    SQLALCHEMY_DATABASE_URI = ('postgresql://gnuboat:gnuboat@localhost/'
    6767                               'gnuboat_mapservice')
    6868    # TEMPLATE_FOLDER could be used to use own templates residing in
  • src/gnuboat/mapservice_impl/demo/service_entry.py

    rbf51993 r73f2e78  
    2424
    2525from gnuboat.mapservice_impl import (
    26     app, application, setup_app, config_object
     26    app, application, gunicorn_app
    2727)
    28 
    29 
    30 def gunicorn_app():
    31     template_folder = os.path.join(os.path.dirname(__file__), 'templates')
    32     setup_app(
    33         'GNUBoat Mapservice API',
    34         config_object,
    35         template_folder=template_folder
    36     )
    37     return app
    3828
    3929
    … …  
    4434        sys.argv.append('--bind=localhost:8080')
    4535    sys.argv.append(
    46         'gnuboat.mapservice_impl.demo.service_entry:gunicorn_app()')
     36        'gnuboat.mapservice_impl:gunicorn_app()')
    4737
    4838    # Copied from /usr/bin/gunicorn
Note: See TracChangeset for help on using the changeset viewer.