From d0d87613774488f0bb2d377480979b19519f52a7 Mon Sep 17 00:00:00 2001 From: kaiyuran <73236245+kaiyuran@users.noreply.github.com> Date: Sat, 16 Nov 2024 00:02:39 -0500 Subject: [PATCH] trying other ports --- app.py | 3 +++ shell.nix | 15 +++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 shell.nix diff --git a/app.py b/app.py index b8e340c..8ad838a 100644 --- a/app.py +++ b/app.py @@ -207,6 +207,9 @@ def emojify(message): app = Flask(__name__) CORS(app) +if __name__ == "__main__": + app.run(port=5500) + @app.route('/getemoji', methods=['GET']) # @cross_origin() def get_random_emoji(): diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..56d6f2f --- /dev/null +++ b/shell.nix @@ -0,0 +1,15 @@ +with import {}; + +mkShell { + buildInputs = [ + python3 + python3Packages.flask + python3Packages.flask-cors + python3Packages.gunicorn + ]; + + shellHook = '' + export LANG=C.UTF-8 + export LC_ALL=C.UTF-8 + ''; +} \ No newline at end of file