plain.dev 0.8.1__tar.gz → 0.8.3__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.8.1 → plain_dev-0.8.3}/PKG-INFO +1 -1
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/cli.py +12 -5
- {plain_dev-0.8.1 → plain_dev-0.8.3}/pyproject.toml +1 -1
- {plain_dev-0.8.1 → plain_dev-0.8.3}/LICENSE +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/README.md +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/README.md +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/__init__.py +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/config.py +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/contribute/__init__.py +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/contribute/cli.py +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/db/__init__.py +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/db/cli.py +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/db/container.py +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/debug.py +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/default_settings.py +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/gunicorn_logging.json +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/mkcert.py +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/pid.py +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/poncho/__init__.py +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/poncho/color.py +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/poncho/compat.py +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/poncho/manager.py +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/poncho/printer.py +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/poncho/process.py +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/precommit/__init__.py +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/precommit/cli.py +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/requests.py +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/services.py +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/templates/dev/requests.html +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/urls.py +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/utils.py +0 -0
- {plain_dev-0.8.1 → plain_dev-0.8.3}/plain/dev/views.py +0 -0
@@ -93,9 +93,11 @@ class Dev:
|
|
93
93
|
]
|
94
94
|
self.domain = f"{codespace_name}-{self.port}.{codespace_forward_domain}"
|
95
95
|
self.url = f"https://{self.domain}/"
|
96
|
+
self.gunicorn_bind = f"127.0.0.1:{self.port}"
|
96
97
|
else:
|
97
98
|
self.domain = f"{self.project_name}.localhost"
|
98
99
|
self.url = f"https://{self.domain}:{self.port}/"
|
100
|
+
self.gunicorn_bind = f"{self.domain}:{self.port}"
|
99
101
|
|
100
102
|
def run(self):
|
101
103
|
pid = Pid()
|
@@ -228,11 +230,7 @@ class Dev:
|
|
228
230
|
gunicorn_cmd = [
|
229
231
|
"gunicorn",
|
230
232
|
"--bind",
|
231
|
-
|
232
|
-
"--certfile",
|
233
|
-
str(self.ssl_cert_path),
|
234
|
-
"--keyfile",
|
235
|
-
str(self.ssl_key_path),
|
233
|
+
self.gunicorn_bind,
|
236
234
|
"--reload",
|
237
235
|
"plain.wsgi:app",
|
238
236
|
"--timeout",
|
@@ -247,6 +245,15 @@ class Dev:
|
|
247
245
|
"--log-config-json",
|
248
246
|
str(Path(__file__).parent / "gunicorn_logging.json"),
|
249
247
|
]
|
248
|
+
|
249
|
+
if self.ssl_cert_path and self.ssl_key_path:
|
250
|
+
gunicorn_cmd += [
|
251
|
+
"--certfile",
|
252
|
+
str(self.ssl_cert_path),
|
253
|
+
"--keyfile",
|
254
|
+
str(self.ssl_key_path),
|
255
|
+
]
|
256
|
+
|
250
257
|
gunicorn = " ".join(gunicorn_cmd)
|
251
258
|
|
252
259
|
if plain_db_installed:
|
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
|
File without changes
|