plain.dev 0.7.5__tar.gz → 0.8.0__tar.gz
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-0.7.5 → plain_dev-0.8.0}/PKG-INFO +1 -1
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/cli.py +16 -8
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/gunicorn_logging.json +2 -2
- {plain_dev-0.7.5 → plain_dev-0.8.0}/pyproject.toml +1 -1
- {plain_dev-0.7.5 → plain_dev-0.8.0}/LICENSE +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/README.md +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/README.md +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/__init__.py +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/config.py +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/contribute/__init__.py +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/contribute/cli.py +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/db/__init__.py +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/db/cli.py +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/db/container.py +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/debug.py +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/default_settings.py +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/mkcert.py +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/pid.py +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/poncho/__init__.py +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/poncho/color.py +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/poncho/compat.py +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/poncho/manager.py +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/poncho/printer.py +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/poncho/process.py +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/precommit/__init__.py +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/precommit/cli.py +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/requests.py +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/services.py +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/templates/dev/requests.html +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/urls.py +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/utils.py +0 -0
- {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/views.py +0 -0
@@ -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
|
]
|
@@ -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
|
},
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|