Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 651 - 660 of 4,539 for Mode (0.03 seconds)

  1. docs/zh-hant/docs/advanced/events.md

    要加入一個在應用關閉時執行的函式,使用事件 `"shutdown"` 來宣告:
    
    {* ../../docs_src/events/tutorial002_py310.py hl[6] *}
    
    在這裡,`shutdown` 事件處理器函式會把一行文字 `"Application shutdown"` 寫入檔案 `log.txt`。
    
    /// info
    
    在 `open()` 函式中,`mode="a"` 表示「append(附加)」;也就是說,這行文字會加在檔案現有內容之後,而不會覆寫先前的內容。
    
    ///
    
    /// tip
    
    注意這裡我們使用的是標準 Python 的 `open()` 函式來操作檔案。
    
    這涉及 I/O(輸入/輸出),也就是需要「等待」資料寫入磁碟。
    
    但 `open()` 並不使用 `async` 與 `await`。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  2. docs/zh/docs/deployment/concepts.md

    为了实现这一点,您通常会有一个**单独的程序**来确保您的应用程序在启动时运行。 在许多情况下,它还可以确保其他组件或应用程序也运行,例如数据库。
    
    ### 启动时运行的示例工具 { #example-tools-to-run-at-startup }
    
    可以完成这项工作的工具的一些示例是:
    
    * Docker
    * Kubernetes
    * Docker Compose
    * Docker in Swarm Mode
    * Systemd
    * Supervisor
    * 作为其服务的一部分由云提供商内部处理
    * 其他的...
    
    我将在接下来的章节中为您提供更具体的示例。
    
    ## 重新启动 { #restarts }
    
    与确保应用程序在启动时运行类似,您可能还想确保它在挂掉后**重新启动**。
    
    ### 我们会犯错误 { #we-make-mistakes }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 16.8K bytes
    - Click Count (0)
  3. docs/fr/docs/deployment/concepts.md

    * Un programme particulier lorsqu'il **s'exécute** sur le système d'exploitation.
        * Cela ne se réfère ni au fichier, ni au code ; cela se réfère **spécifiquement** à l'élément qui est **exécuté** et géré par le système d'exploitation.
    * N'importe quel programme, n'importe quel code, **ne peut faire des choses** que lorsqu'il est **exécuté**. Donc, lorsqu'il y a un **processus en cours**.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 21.4K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/mylasta/action/FessMessages.java

        /** The key of the message: Could not process the specified query. */
        public static final String ERRORS_invalid_query_cannot_process = "{errors.invalid_query_cannot_process}";
    
        /** The key of the message: The mode is incorrect. (not {0}, but {1}) */
        public static final String ERRORS_crud_invalid_mode = "{errors.crud_invalid_mode}";
    
        /** The key of the message: Failed to create a new data. */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 126.6K bytes
    - Click Count (0)
  5. docs/fr/docs/deployment/docker.md

    FROM python:3.14
    
    WORKDIR /code
    
    COPY ./requirements.txt /code/requirements.txt
    
    RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
    
    # (1)!
    COPY ./main.py /code/
    
    # (2)!
    CMD ["fastapi", "run", "main.py", "--port", "80"]
    ```
    
    1. Copier le fichier `main.py` directement dans le répertoire `/code` (sans répertoire `./app`).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 32.3K bytes
    - Click Count (0)
  6. docs/es/docs/advanced/events.md

    Aquí, la función manejadora del evento `shutdown` escribirá una línea de texto `"Application shutdown"` a un archivo `log.txt`.
    
    /// info | Información
    
    En la función `open()`, el `mode="a"` significa "añadir", por lo tanto, la línea será añadida después de lo que sea que esté en ese archivo, sin sobrescribir el contenido anterior.
    
    ///
    
    /// tip | Consejo
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  7. cmd/metacache-walk.go

    				name:     opts.BaseDir,
    				metadata: metadata,
    			}); err != nil {
    				return err
    			}
    		} else {
    			st, sterr := Lstat(pathJoin(volumeDir, opts.BaseDir, xlStorageFormatFile))
    			if sterr == nil && st.Mode().IsRegular() {
    				return errFileNotFound
    			}
    		}
    	}
    
    	prefix := opts.FilterPrefix
    	var scanDir func(path string) error
    
    	scanDir = func(current string) error {
    		if contextCanceled(ctx) {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon May 26 07:06:43 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  8. cmd/api-errors.go

    	},
    	ErrInvalidStorageClass: {
    		Code:           "InvalidStorageClass",
    		Description:    "Invalid storage class.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrInvalidRequestBody: {
    		Code:           "InvalidArgument",
    		Description:    "Body shouldn't be set for this request.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrInvalidMaxUploads: {
    		Code:           "InvalidArgument",
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Apr 16 07:34:24 GMT 2025
    - 93K bytes
    - Click Count (3)
  9. docs/pt/docs/deployment/docker.md

    FROM python:3.14
    
    WORKDIR /code
    
    COPY ./requirements.txt /code/requirements.txt
    
    RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
    
    # (1)!
    COPY ./main.py /code/
    
    # (2)!
    CMD ["fastapi", "run", "main.py", "--port", "80"]
    ```
    
    1. Copie o arquivo `main.py` para o diretório `/code` diretamente (sem nenhum diretório `./app`).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 30.9K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/mylasta/direction/FessConfig.java

        String USER_CODE_REQUEST_PARAMETER = "user.code.request.parameter";
    
        /** The key of the configuration. e.g. 20 */
        String USER_CODE_MIN_LENGTH = "user.code.min.length";
    
        /** The key of the configuration. e.g. 100 */
        String USER_CODE_MAX_LENGTH = "user.code.max.length";
    
        /** The key of the configuration. e.g. [a-zA-Z0-9_]+ */
        String USER_CODE_PATTERN = "user.code.pattern";
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 576.9K bytes
    - Click Count (2)
Back to Top