diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 5d5c579..f5cb821 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -77,7 +77,7 @@ jobs: - run: | mk python-release owner=vkottler \ - repo=runtimepy version=5.7.6 + repo=runtimepy version=5.7.7 if: | matrix.python-version == '3.12' && matrix.system == 'ubuntu-latest' diff --git a/README.md b/README.md index ed16da0..9aa7c96 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,11 @@ ===================================== generator=datazen version=3.1.4 - hash=41ff8742602f69f2831092a4b666cddc + hash=0bf47d2ff3fb0ed78ed013f4fcbc59e2 ===================================== --> -# runtimepy ([5.7.6](https://pypi.org/project/runtimepy/)) +# runtimepy ([5.7.7](https://pypi.org/project/runtimepy/)) [![python](https://img.shields.io/pypi/pyversions/runtimepy.svg)](https://pypi.org/project/runtimepy/) ![Build Status](https://github.com/vkottler/runtimepy/workflows/Python%20Package/badge.svg) diff --git a/local/variables/package.yaml b/local/variables/package.yaml index 26f1867..250c64b 100644 --- a/local/variables/package.yaml +++ b/local/variables/package.yaml @@ -1,5 +1,5 @@ --- major: 5 minor: 7 -patch: 6 +patch: 7 entry: runtimepy diff --git a/pyproject.toml b/pyproject.toml index 548affa..ac0902b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta:__legacy__" [project] name = "runtimepy" -version = "5.7.6" +version = "5.7.7" description = "A framework for implementing Python services." readme = "README.md" requires-python = ">=3.11" diff --git a/runtimepy/__init__.py b/runtimepy/__init__.py index 3f1490c..a2533f1 100644 --- a/runtimepy/__init__.py +++ b/runtimepy/__init__.py @@ -1,7 +1,7 @@ # ===================================== # generator=datazen # version=3.1.4 -# hash=cab7cff2cb194a61178fa386b80eae85 +# hash=ed12f307211d1317e3ce6a7c4409b97f # ===================================== """ @@ -10,7 +10,7 @@ DESCRIPTION = "A framework for implementing Python services." PKG_NAME = "runtimepy" -VERSION = "5.7.6" +VERSION = "5.7.7" # runtimepy-specific content. METRICS_NAME = "metrics" diff --git a/runtimepy/data/server_base.yaml b/runtimepy/data/server_base.yaml index dc471b5..62c8af9 100644 --- a/runtimepy/data/server_base.yaml +++ b/runtimepy/data/server_base.yaml @@ -16,7 +16,7 @@ init: config: # Default redirects. http_redirects: - "/": "/app.html" + "/": "/index.html" "/index.html": "/app.html" servers: diff --git a/runtimepy/net/server/__init__.py b/runtimepy/net/server/__init__.py index 82848ae..c927125 100644 --- a/runtimepy/net/server/__init__.py +++ b/runtimepy/net/server/__init__.py @@ -272,7 +272,7 @@ async def get_handler( return self.favicon_data # Try serving a file and handling redirects. - for handler in [self.try_redirect, self.try_file]: + for handler in [self.try_file, self.try_redirect]: result = await handler( request.target.origin_form, response ) diff --git a/runtimepy/net/server/app/__init__.py b/runtimepy/net/server/app/__init__.py index 5604907..fb5904a 100644 --- a/runtimepy/net/server/app/__init__.py +++ b/runtimepy/net/server/app/__init__.py @@ -69,9 +69,9 @@ async def setup(app: AppInfo) -> int: ) # Default application (environment tabs). - RuntimepyServerConnection.apps["/app.html"] = create_app( - app, getattr(_import_module(module), method) - ) + html_app = create_app(app, getattr(_import_module(module), method)) + for target in ["/", "/app.html", "/index.html"]: + RuntimepyServerConnection.apps[target] = html_app # Register redirects. redirects: dict[str, str] = app.config_param("http_redirects", {})