From b9d88956ae0362575536c8cfc1fa29e9cfe25815 Mon Sep 17 00:00:00 2001 From: Rajtilak Bhattacharjee Date: Wed, 20 Dec 2023 20:57:42 +0530 Subject: [PATCH] Refactor project structure: Organized files into 'app' folder and removed 'zappa', a breaking change. --- app/keepyourmouthshut.py | 4 ---- requirements.txt => app/requirements.txt | 1 - zappa_settings.json | 10 ---------- 3 files changed, 15 deletions(-) rename requirements.txt => app/requirements.txt (91%) delete mode 100644 zappa_settings.json diff --git a/app/keepyourmouthshut.py b/app/keepyourmouthshut.py index 4d40bb0..c7cb46d 100644 --- a/app/keepyourmouthshut.py +++ b/app/keepyourmouthshut.py @@ -48,7 +48,3 @@ def generate(): # Send the zip file to the user for download return send_file(f"./downloads/{name}_podcast.zip", as_attachment=True) - - -if __name__ == "__main__": - app.run(host="0.0.0.0", port=64215, debug=True) diff --git a/requirements.txt b/app/requirements.txt similarity index 91% rename from requirements.txt rename to app/requirements.txt index 25b9a16..4b74fe3 100644 --- a/requirements.txt +++ b/app/requirements.txt @@ -7,4 +7,3 @@ PyYAML==6.0.1 requests==2.31.0 shutils==0.1.0 flask==3.0.0 -zappa==0.58.0 diff --git a/zappa_settings.json b/zappa_settings.json deleted file mode 100644 index 93ae8fd..0000000 --- a/zappa_settings.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "production": { - "app_function": "app.keepyourmouthshut.app", - "profile_name": "default", - "project_name": "keepyourmouthsh", - "runtime": "python3.11", - "s3_bucket": "zappa-93lqg9n3z", - "aws_region": "us-east-1" - } -}