Skip to content

Commit

Permalink
Try to set up project for AWS deploy
Browse files Browse the repository at this point in the history
Make the entry-point file runnable so AWS can run the Flask app.

For:
#8
  • Loading branch information
liammulh committed Mar 20, 2024
1 parent 2bea502 commit b048719
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .ebignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.coverage
.mypy_cache
.pytest_cache
__pycache__
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
!.elasticbeanstalk/*.cfg.yml
!.elasticbeanstalk/*.global.yml
.elasticbeanstalk/*

.coverage
.mypy_cache
.pytest_cache
Expand Down
5 changes: 5 additions & 0 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit b048719

Please sign in to comment.