diff --git a/.ebignore b/.ebignore new file mode 100644 index 0000000..8276cb4 --- /dev/null +++ b/.ebignore @@ -0,0 +1,4 @@ +.coverage +.mypy_cache +.pytest_cache +__pycache__ diff --git a/.gitignore b/.gitignore index 8276cb4..c40d669 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +!.elasticbeanstalk/*.cfg.yml +!.elasticbeanstalk/*.global.yml +.elasticbeanstalk/* + .coverage .mypy_cache .pytest_cache diff --git a/src/app.py b/src/app.py index efc20a3..c1141c8 100644 --- a/src/app.py +++ b/src/app.py @@ -13,3 +13,8 @@ def hello_world(): """A cheeky hello world route.""" return {"message": "Look on my Affiliations Service, ye Mighty, and despair!"} + + +if __name__ == "__main__": + # I believe this is needed for running on AWS. + app.run()