Skip to content
Permalink
Browse files

fixes for waitress deployment issue that turned out to be a setup.py …

…installation issue
  • Loading branch information...
shawnmjones committed Jul 16, 2018
1 parent 6f20f9b commit 659f230e0c78fd035c91438e22f570c003cb930d
Showing with 6 additions and 7 deletions.
  1. +1 −3 dockerstart.sh
  2. +3 −2 mementoembed/__init__.py
  3. +2 −2 setup.py
@@ -1,6 +1,4 @@
#!/bin/bash

redis-server --daemonize yes --save ""
# waitress-serve --port=5550 --call mementoembed:create_app
export FLASK_APP=mementoembed
flask run --host 0.0.0.0 --port 5550
waitress-serve --port=5550 --call mementoembed:create_app
@@ -219,8 +219,7 @@ def create_app():

application_logger.info("Requests timeout is set to {}".format(app.config['REQUEST_TIMEOUT_FLOAT']))
application_logger.info("All Configuration successfully loaded for MementoEmbed")
application_logger.info("MementoEmbed is now initialized and ready to receive requests")


from .services import oembed, memento, product
app.register_blueprint(oembed.bp)
app.register_blueprint(memento.bp)
@@ -232,6 +231,8 @@ def create_app():
from .ui import product as pd
app.register_blueprint(pd.bp)

application_logger.info("MementoEmbed is now initialized and ready to receive requests")

#pylint: disable=unused-variable
@app.after_request
def after_request(response):
@@ -1,4 +1,4 @@
from setuptools import setup
from setuptools import setup, find_packages

# to get pylint to shut up
__appname__ = None
@@ -10,7 +10,7 @@
setup(
name=__appname__.lower(),
version=__appversion__,
packages=[ __appname__.lower() ],
packages=find_packages(),
include_package_data=True,
install_requires=[
'aiu',

0 comments on commit 659f230

Please sign in to comment.
You can’t perform that action at this time.