Changes in / [73f2e78:bf51993]


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

Legend:

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

    r73f2e78 rbf51993  
    9393        else:
    9494            db_setup()
    95 
    96 
    97 def 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

    r73f2e78 rbf51993  
    6464
    6565class ProductionConfig(Config):
    66     SQLALCHEMY_DATABASE_URI = ('postgresql://gnuboat:gnuboat@localhost/'
     66    SQLALCHEMY_DATABASE_URI = ('mysql+mysqldb://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

    r73f2e78 rbf51993  
    2424
    2525from gnuboat.mapservice_impl import (
    26     app, application, gunicorn_app
     26    app, application, setup_app, config_object
    2727)
     28
     29
     30def 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
    2838
    2939
    … …  
    3444        sys.argv.append('--bind=localhost:8080')
    3545    sys.argv.append(
    36         'gnuboat.mapservice_impl:gunicorn_app()')
     46        'gnuboat.mapservice_impl.demo.service_entry:gunicorn_app()')
    3747
    3848    # Copied from /usr/bin/gunicorn
Note: See TracChangeset for help on using the changeset viewer.