- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 233 for Main (0.14 sec)
-
docs/em/docs/deployment/docker.md
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 27.9K bytes - Viewed (0) -
docs/de/docs/deployment/server-workers.md
* `main:app`: Das ist die gleiche Syntax, die auch von Uvicorn verwendet wird. `main` bedeutet das Python-Modul mit dem Namen `main`, also eine Datei `main.py`. Und `app` ist der Name der Variable, welche die **FastAPI**-Anwendung ist. * Stellen Sie sich einfach vor, dass `main:app` einer Python-`import`-Anweisung wie der folgenden entspricht: ```Python from main import app ```
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Mar 30 18:19:25 GMT 2024 - 10.1K bytes - Viewed (0) -
api/maven-api-metadata/pom.xml
<configuration> <velocityBasedir>${project.basedir}/../../src/mdo</velocityBasedir> <version>1.2.0</version> <models> <model>src/main/mdo/metadata.mdo</model> </models> <templates> <template>model.vm</template> </templates> <params>
XML - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Thu Apr 25 08:48:58 GMT 2024 - 3.1K bytes - Viewed (0) -
docs/pt/docs/tutorial/index.md
Todos os blocos de código podem ser copiados e utilizados diretamente (eles são, na verdade, arquivos Python testados). Para rodar qualquer um dos exemplos, copie o codigo para um arquivo `main.py`, e inicie o `uvivorn` com: <div class="termy"> ```console $ uvicorn main:app --reload <span style="color: green;">INFO</span>: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 2.8K bytes - Viewed (0) -
deps.xml
<property name="webinf.dir" value="${basedir}/src/main/webapp/WEB-INF" /> <property name="crawler.dir" value="${basedir}/src/main/webapp/WEB-INF/env/crawler" /> <property name="suggest.dir" value="${basedir}/src/main/webapp/WEB-INF/env/suggest" /> <property name="thumbnail.dir" value="${basedir}/src/main/webapp/WEB-INF/env/thumbnail" /> <property name="site.dir" value="${basedir}/src/main/webapp/WEB-INF/site" />
XML - Registered: Mon Apr 22 08:04:10 GMT 2024 - Last Modified: Sat Apr 13 11:44:26 GMT 2024 - 3.1K bytes - Viewed (0) -
docs/zh/docs/deployment/docker.md
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt # (1) COPY ./main.py /code/ # (2) CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"] ``` 1. 直接将`main.py`文件复制到`/code`目录中(不包含任何`./app`目录)。 2. 运行 Uvicorn 并告诉它从 `main` 导入 `app` 对象(而不是从 `app.main` 导入)。 然后调整Uvicorn命令使用新模块`main`而不是`app.main`来导入FastAPI 实例`app`。 ## 部署概念
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 31.2K bytes - Viewed (0) -
docs/zh/docs/deployment/server-workers.md
[19515] [INFO] Application startup complete. ``` </div> 让我们看看每个选项的含义: * `main:app`:这与 Uvicorn 使用的语法相同,`main` 表示名为"`main`"的 Python 模块,因此是文件 `main.py`。 `app` 是 **FastAPI** 应用程序的变量名称。 * 你可以想象 `main:app` 相当于一个 Python `import` 语句,例如: ```Python from main import app ``` * 因此,`main:app` 中的冒号相当于 `from main import app` 中的 Python `import` 部分。
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 8.7K bytes - Viewed (0) -
docs/ja/docs/deployment/server-workers.md
[19515] [INFO] Application startup complete. ``` </div> それぞれのオプションの意味を見てみましょう: * `main:app`: `main`は"`main`"という名前のPythonモジュール、つまりファイル`main.py`を意味します。そして `app` は **FastAPI** アプリケーションの変数名です。 * main:app`はPythonの`import`文と同じようなものだと想像できます: ```Python from main import app ``` * つまり、`main:app`のコロンは、`from main import app`のPythonの`import`の部分と同じになります。 * `--workers`: 使用するワーカー・プロセスの数で、それぞれがUvicornのワーカーを実行します。
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 11.2K bytes - Viewed (0) -
api/maven-api-settings/pom.xml
</goals> <configuration> <version>2.0.0</version> <velocityBasedir>${project.basedir}/../../src/mdo</velocityBasedir> <models> <model>src/main/mdo/settings.mdo</model> </models> <templates> <template>model.vm</template> </templates> <params>
XML - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Thu Apr 25 08:48:58 GMT 2024 - 3.2K bytes - Viewed (0) -
maven-api-impl/pom.xml
XML - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Thu Apr 25 08:48:58 GMT 2024 - 9.6K bytes - Viewed (0)