plain.dev 0.7.5__py3-none-any.whl → 0.8.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.
- plain/dev/cli.py +16 -8
- plain/dev/gunicorn_logging.json +2 -2
- {plain_dev-0.7.5.dist-info → plain_dev-0.8.0.dist-info}/METADATA +1 -1
- {plain_dev-0.7.5.dist-info → plain_dev-0.8.0.dist-info}/RECORD +7 -7
- {plain_dev-0.7.5.dist-info → plain_dev-0.8.0.dist-info}/LICENSE +0 -0
- {plain_dev-0.7.5.dist-info → plain_dev-0.8.0.dist-info}/WHEEL +0 -0
- {plain_dev-0.7.5.dist-info → plain_dev-0.8.0.dist-info}/entry_points.txt +0 -0
plain/dev/cli.py
CHANGED
@@ -90,13 +90,21 @@ class Dev:
|
|
90
90
|
pid.write()
|
91
91
|
|
92
92
|
try:
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
93
|
+
if "CODESPACES" in os.environ:
|
94
|
+
codespace_name = os.environ["CODESPACE_NAME"]
|
95
|
+
codespace_forward_domain = os.environ[
|
96
|
+
"GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN"
|
97
|
+
]
|
98
|
+
self.domain = f"https://{codespace_name}.{codespace_forward_domain}"
|
99
|
+
else:
|
100
|
+
mkcert_manager = MkcertManager()
|
101
|
+
mkcert_manager.setup_mkcert(install_path=Path.home() / ".plain" / "dev")
|
102
|
+
self.ssl_cert_path, self.ssl_key_path = mkcert_manager.generate_certs(
|
103
|
+
domain=self.domain,
|
104
|
+
storage_path=Path(settings.PLAIN_TEMP_PATH) / "dev" / "certs",
|
105
|
+
)
|
106
|
+
self.modify_hosts_file()
|
107
|
+
|
100
108
|
self.set_csrf_and_allowed_hosts()
|
101
109
|
self.run_preflight()
|
102
110
|
|
@@ -230,7 +238,7 @@ class Dev:
|
|
230
238
|
"-",
|
231
239
|
*reload_extra.split(),
|
232
240
|
"--access-logformat",
|
233
|
-
"'\"%(r)s\" status=%(s)s length=%(b)s
|
241
|
+
"'\"%(r)s\" status=%(s)s length=%(b)s time=%(M)sms'",
|
234
242
|
"--log-config-json",
|
235
243
|
str(Path(__file__).parent / "gunicorn_logging.json"),
|
236
244
|
]
|
plain/dev/gunicorn_logging.json
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
"handlers": [
|
14
14
|
"error_console"
|
15
15
|
],
|
16
|
-
"propagate":
|
16
|
+
"propagate": false,
|
17
17
|
"qualname": "gunicorn.error"
|
18
18
|
},
|
19
19
|
"gunicorn.access": {
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"handlers": [
|
22
22
|
"console"
|
23
23
|
],
|
24
|
-
"propagate":
|
24
|
+
"propagate": false,
|
25
25
|
"qualname": "gunicorn.access"
|
26
26
|
}
|
27
27
|
},
|
@@ -1,6 +1,6 @@
|
|
1
1
|
plain/dev/README.md,sha256=BQDaRKfsafIPzx7vtVt-zS-a8l6sxbQThhQTvu7tp3Y,3699
|
2
2
|
plain/dev/__init__.py,sha256=C1JrkNE5XX2DLgBXXLAV_UyhofwVd0ZPL59fPUMbOKo,139
|
3
|
-
plain/dev/cli.py,sha256=
|
3
|
+
plain/dev/cli.py,sha256=4X3zSo_RbbRFv0f4egFNoXoMuHzZoetK-c3PeouS-1A,9689
|
4
4
|
plain/dev/config.py,sha256=h6o5YZtJhg-cFIWoqIDWuMCC5T09cxEsBaa3BP4Nii0,632
|
5
5
|
plain/dev/contribute/__init__.py,sha256=9ByBOIdM8DebChjNz-RH2atdz4vWe8somlwNEsbhwh4,40
|
6
6
|
plain/dev/contribute/cli.py,sha256=qZ7YmE_upbw-Y5NRpvaHnJTPp9kvn21fPQ7G0n1LAkg,2277
|
@@ -9,7 +9,7 @@ plain/dev/db/cli.py,sha256=058HjRKLGz-FxauQEpwsPoh_LCiy-_NEIpRZl9W1ZKM,2855
|
|
9
9
|
plain/dev/db/container.py,sha256=RlPJU_CCMKA-zN8Kp0sYAu3jabOizxYAj8fSCsjCf60,5147
|
10
10
|
plain/dev/debug.py,sha256=fIrecLfAK_lXSDyn3WmYikzZSse3KY47xcVVbZqJGhk,294
|
11
11
|
plain/dev/default_settings.py,sha256=uXWYORWP_aRDwXIFXdu5kHyiBFUZzARIJdhPeFaX35c,75
|
12
|
-
plain/dev/gunicorn_logging.json,sha256=
|
12
|
+
plain/dev/gunicorn_logging.json,sha256=yU23jzs5G4YGdDWBNiyAc3KypR4HirR6afIkD7w6DhU,1113
|
13
13
|
plain/dev/mkcert.py,sha256=u284XXQeTgwSkKKh0gMrYpnNGdd9OOUJKLQAXcvGnr4,3459
|
14
14
|
plain/dev/pid.py,sha256=gRMBf7aGndrra1TnmKtPghTijnd0i0Xeo63mzfPWp7M,436
|
15
15
|
plain/dev/poncho/__init__.py,sha256=MDOk2rhhoR3V-I-rg6tMHFeX60vTGJuQ14RI-_N6tQY,97
|
@@ -26,8 +26,8 @@ plain/dev/templates/dev/requests.html,sha256=kQKJZq5L77juuL_t8UjcAehEU61U4RXNnKa
|
|
26
26
|
plain/dev/urls.py,sha256=b4NL2I6Ok-t7nTPjRnKoz_LQRttE3_mp8l2NlmeYQ9I,146
|
27
27
|
plain/dev/utils.py,sha256=4wMzpvj1Is_c0QxhsTu34_P9wAYlzw4glNPfVtZr_0A,123
|
28
28
|
plain/dev/views.py,sha256=r2Ivk7OXytpRhXq4DZpsb7FXNP9vzmEE3D5kLajYG4w,1073
|
29
|
-
plain_dev-0.
|
30
|
-
plain_dev-0.
|
31
|
-
plain_dev-0.
|
32
|
-
plain_dev-0.
|
33
|
-
plain_dev-0.
|
29
|
+
plain_dev-0.8.0.dist-info/LICENSE,sha256=YDg-l_Rj7LVP5uDXy04eQPGb_DYVXAHAHYd9r3pU1Cg,2713
|
30
|
+
plain_dev-0.8.0.dist-info/METADATA,sha256=7a9iLx-8rYiEZntBRHg3vWjUYlPkRx9k7T686lZ0sdE,4675
|
31
|
+
plain_dev-0.8.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
32
|
+
plain_dev-0.8.0.dist-info/entry_points.txt,sha256=rBo-S4THn07f55UwHBuUhIbDhlUq3EzTOD8mIb5fGQg,99
|
33
|
+
plain_dev-0.8.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|