Skip to content

Commit

Permalink
Improve remarks server package
Browse files Browse the repository at this point in the history
  • Loading branch information
Azeirah committed Nov 26, 2024
1 parent 008f3b5 commit e32136f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 12 deletions.
Empty file added deployment/__init__.py
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion deployment/remarks-server/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
let
attrs = project.renderers.buildPythonPackage { inherit python; };
in
python.pkgs.buildPythonPackage (attrs // {});
python.pkgs.buildPythonPackage (attrs // { env.CUSTOM_ENVVAR = "hello"; });
};
}
15 changes: 5 additions & 10 deletions deployment/remarks-server/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
[tool.poetry]
[project]
name = "remarks-server"
version = "0.1.0"
description = ""
authors = ["Laura Brekelmans <mail@laura.fm>"]
authors = [{ name = "Laura Brekelmans", email = "mail@laura.fm" }]
readme = "README.md"
dependencies = ["Flask >= 3.0.3", "remarks @ ../../"]

[tool.poetry.dependencies]
python = "^3.11"
Flask = "^3.1.0"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[project.scripts]
remarks-server = "remarks_server.server:main"
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,8 @@ def process():

return "OK"

def main():
app.run(host="0.0.0.0", port=5000)

app.run(host="0.0.0.0", port=5000)
if __name__ == "__main__":
main()

0 comments on commit e32136f

Please sign in to comment.