orionis 0.734.0__py3-none-any.whl → 0.735.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- orionis/console/commands/server.py +17 -0
- orionis/foundation/config/filesystems/entitites/public.py +2 -2
- orionis/metadata/framework.py +1 -1
- {orionis-0.734.0.dist-info → orionis-0.735.0.dist-info}/METADATA +1 -1
- {orionis-0.734.0.dist-info → orionis-0.735.0.dist-info}/RECORD +8 -8
- {orionis-0.734.0.dist-info → orionis-0.735.0.dist-info}/WHEEL +0 -0
- {orionis-0.734.0.dist-info → orionis-0.735.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.734.0.dist-info → orionis-0.735.0.dist-info}/top_level.txt +0 -0
|
@@ -52,7 +52,22 @@ class ServerCommand(BaseCommand):
|
|
|
52
52
|
interface: str = app_config.get("interface", "asgi")
|
|
53
53
|
app_path: str = "bootstrap.app:app"
|
|
54
54
|
|
|
55
|
+
# Retrieve filesystem configuration for static file serving
|
|
56
|
+
filesystems_config: dict = Application.config("filesystems")
|
|
57
|
+
public_disk: dict = filesystems_config.get("disks", {}).get("public", {})
|
|
58
|
+
path: str = public_disk.get("path", "storage/app/public")
|
|
59
|
+
url: str = public_disk.get("url", "static")
|
|
60
|
+
|
|
61
|
+
# Ensure the static file path is absolute
|
|
62
|
+
if not os.path.isabs(path):
|
|
63
|
+
path = os.path.abspath(os.path.join(os.getcwd(), path))
|
|
64
|
+
|
|
65
|
+
# Ensure the static file directory exists
|
|
66
|
+
if not os.path.exists(path):
|
|
67
|
+
os.makedirs(path, exist_ok=True)
|
|
68
|
+
|
|
55
69
|
# Build the command to launch the Granian server
|
|
70
|
+
# Do NOT wrap the path in quotes; Granian expects a raw path
|
|
56
71
|
cmd = [
|
|
57
72
|
sys.executable, "-B", "-m", "granian",
|
|
58
73
|
"--interface", interface,
|
|
@@ -60,6 +75,8 @@ class ServerCommand(BaseCommand):
|
|
|
60
75
|
"--port", str(port),
|
|
61
76
|
"--workers", "1" if os.name == "nt" else str(workers),
|
|
62
77
|
"--no-log",
|
|
78
|
+
"--static-path-route", url,
|
|
79
|
+
"--static-path-mount", path,
|
|
63
80
|
app_path
|
|
64
81
|
]
|
|
65
82
|
if reload:
|
orionis/metadata/framework.py
CHANGED
|
@@ -16,7 +16,7 @@ orionis/console/commands/make_command.py,sha256=eL33zKDRmKaTsuqdYjyMzKsDb1D-R4iW
|
|
|
16
16
|
orionis/console/commands/make_scheduler_listener.py,sha256=LT4pbUsCqrrYDfuantW65GAjlWZrJlqY0frJtHiH42M,5239
|
|
17
17
|
orionis/console/commands/scheduler_list.py,sha256=7E0C926e7YVU3YxqQ8Ot2as7Yco0jviFaxM8WrOYfsg,5316
|
|
18
18
|
orionis/console/commands/scheduler_work.py,sha256=dDW9XTjGb-5ABuhPYjfd1rfO7xLDhgYu5nd6nToiYFE,5597
|
|
19
|
-
orionis/console/commands/server.py,sha256=
|
|
19
|
+
orionis/console/commands/server.py,sha256=fyzfnulkepbLNIahm_mahf23VqAYEiRheOJXGYEkHto,6213
|
|
20
20
|
orionis/console/commands/test.py,sha256=G3pveONRbeWTcVwaHat3wTAhxMm4g_BwhJhIejq6V0Y,3518
|
|
21
21
|
orionis/console/commands/version.py,sha256=Av_9oVkhtisf-oDljKbXK5TmCFaeYagLJmOwEVYJPZw,4835
|
|
22
22
|
orionis/console/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -143,7 +143,7 @@ orionis/foundation/config/filesystems/entitites/aws.py,sha256=Tzg7FIO2EpIBh51C0C
|
|
|
143
143
|
orionis/foundation/config/filesystems/entitites/disks.py,sha256=MhdM2ucIDdqkSbbevHwLg6BVw9do5pAJAEA-SSdUkG4,2899
|
|
144
144
|
orionis/foundation/config/filesystems/entitites/filesystems.py,sha256=tYtNmDpMlm662de7sSPuAuOfo6lcG3jVcL15fa3TEHs,1836
|
|
145
145
|
orionis/foundation/config/filesystems/entitites/local.py,sha256=PNgcJ7qxhVWSi5LxXuv7Kg48x6Tt34HBQsgux_fxtfk,1212
|
|
146
|
-
orionis/foundation/config/filesystems/entitites/public.py,sha256=
|
|
146
|
+
orionis/foundation/config/filesystems/entitites/public.py,sha256=tVAyRgt_A4mnZJIIa_qM2TX8_oaQxehGRGjbmgFkOhY,1683
|
|
147
147
|
orionis/foundation/config/logging/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
148
148
|
orionis/foundation/config/logging/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
149
149
|
orionis/foundation/config/logging/entities/channels.py,sha256=-bguMcxirxwJl1qLtDbFkRcJ594MaH9bo8jYk-RC3Ec,4928
|
|
@@ -215,7 +215,7 @@ orionis/http/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
|
|
|
215
215
|
orionis/http/core/asgi.py,sha256=L0UBzVEFHkclgCrhr68HyirxMhoPbyHdehNxzcj2Rw8,465
|
|
216
216
|
orionis/http/core/rsgi.py,sha256=kevwDn5BgJTveA1AMooBi-N7wE305ZuqySPomdi9XDk,365
|
|
217
217
|
orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
218
|
-
orionis/metadata/framework.py,sha256=
|
|
218
|
+
orionis/metadata/framework.py,sha256=av6JZYc1EPk8ElY8kS9-f_H0jIsFePivyUTw1NFhuWM,4751
|
|
219
219
|
orionis/metadata/package.py,sha256=s1JeGJPwdVh4jO3IOfmpwMuJ_oX6Vf9NL7jgPEQNf5Y,16050
|
|
220
220
|
orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
221
221
|
orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -410,8 +410,8 @@ orionis/test/validators/workers.py,sha256=HcZ3cnrk6u7cvM1xZpn_lsglHAq69_jx9RcTSv
|
|
|
410
410
|
orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
411
411
|
orionis/test/view/render.py,sha256=arysoswhkV2vUd2aVMZRPpmH317jaWbgjDpQ_AWQ5AE,5663
|
|
412
412
|
orionis/test/view/report.stub,sha256=QLqqCdRoENr3ECiritRB3DO_MOjRQvgBh5jxZ3Hs1r0,28189
|
|
413
|
-
orionis-0.
|
|
414
|
-
orionis-0.
|
|
415
|
-
orionis-0.
|
|
416
|
-
orionis-0.
|
|
417
|
-
orionis-0.
|
|
413
|
+
orionis-0.735.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
|
|
414
|
+
orionis-0.735.0.dist-info/METADATA,sha256=JvFVVZbhO-w89LBEjmBneGvCMBHHcdyyKLZNsmGiybw,5001
|
|
415
|
+
orionis-0.735.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
416
|
+
orionis-0.735.0.dist-info/top_level.txt,sha256=lyXi6jArpqJ-0zzNqd_uwsH-z9TCEBVBL-pC3Ekv7hU,8
|
|
417
|
+
orionis-0.735.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|