From c1b8fac384a5d14317534358b26b90234a1edd64 Mon Sep 17 00:00:00 2001 From: David Legrand <1110600+davlgd@users.noreply.github.com> Date: Tue, 5 Dec 2023 15:28:08 +0100 Subject: [PATCH] Fix links color in dark mode and some typos (#94) * Python : add port 9000 trick * Fix a typo in log-management.md * Fix links color in dark mode --------- Co-authored-by: davlgd --- assets/css/custom.css | 9 +++++---- content/doc/administrate/log-management.md | 2 +- content/doc/reference/reference-environment-variables.md | 4 +++- static/partials/language-specific-deploy/python.md | 2 ++ 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/assets/css/custom.css b/assets/css/custom.css index 21fb3ebd..986a026b 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -50,7 +50,6 @@ h1, .content h1, border-radius: 0rem; } - /* ----------------------------------------- Customize shortcodes -------------------------------------------*/ @@ -138,6 +137,11 @@ selectors in css can't be grained to target Markdown syntax color: rgb(90, 66, 212); } +html[class~="dark"] .content p a:not(.code), +html[class~="dark"] .content li a:not(.code) { + color: rgb(0, 172, 230); +} + /* Allow linking in a variable environment without changing the style and adding an a arrow at the end of the text */ .content a:not(.code) { @@ -161,8 +165,6 @@ changing the style and adding an a arrow at the end of the text */ font-size: 1rem; } - - /*-------------------------------------------------------- Table Styling ----------------------------------------------------------*/ @@ -181,7 +183,6 @@ html[class~="dark"] .content table:not(.code-block table) th { color: rgb(193, 193, 196); } - /* Remove internal borders */ .content table:not(.code-block table) td { margin: 0px; diff --git a/content/doc/administrate/log-management.md b/content/doc/administrate/log-management.md index 6fd0039d..1d4e4a3e 100644 --- a/content/doc/administrate/log-management.md +++ b/content/doc/administrate/log-management.md @@ -112,7 +112,7 @@ If you need to change the ouput you can specify the `--format` flag with one of } ``` -## Exporting logs to an external tools +## Exporting logs to an external tool You can use the logs drains to send your application's logs to an external server with the following command. diff --git a/content/doc/reference/reference-environment-variables.md b/content/doc/reference/reference-environment-variables.md index 4233662f..713e915e 100644 --- a/content/doc/reference/reference-environment-variables.md +++ b/content/doc/reference/reference-environment-variables.md @@ -277,7 +277,9 @@ If `TAILSCALE_LOGIN_SERVER` is provided, the agent will be configured to reach a |`WSGI_POST_BUFFERING` | Maximal size (in bytes) for the headers of a request. | 4096 | |`WSGI_THREADS` | Number of threads per worker. (Defaut: automatically setup with the scaler size) | | |`WSGI_WORKERS` | Number of workers. (Defaut: automatically setup with the scaler size) | | - + +When your Python application doesn't use one of the supported backends, with `CC_RUN_COMMAND` for example, it must listen on port `9000`, not `8080`. + ## Ruby [Ruby Documentation](/guides/ruby-rack-app-tutorial) diff --git a/static/partials/language-specific-deploy/python.md b/static/partials/language-specific-deploy/python.md index 9fa544ab..5b4e0a46 100644 --- a/static/partials/language-specific-deploy/python.md +++ b/static/partials/language-specific-deploy/python.md @@ -14,6 +14,8 @@ The module (without .py) must be importable, i.e. be in `PYTHONPATH`. Basically, For example with *Flask*, it's gonna be the name of your main server file, followed by your Flask object: `server:app` for instance if you have a `server.py` file at the root of your project with a Flask `app` object inside. +You can also use `CC_RUN_COMMAND` to launch Python application your way. In such case, it must listen on port `9000`. + ### Choose Python version The default version of python on Clever Cloud is **2.7**. If you want to use python **3.x** instead, create an [environment variable](#setting-up-environment-variables-on-clever-cloud) `CC_PYTHON_VERSION` equal to either `3` (which will default to the most up-to-date version), `3.7`, `3.8`, `3.9`, `3.10` or `3.11`.