Skip to content

Commit 34df90e

Browse files
authored
Feature/fly md en es translation #1085 #1087 (#1088)
Related: #1085 #1087 docs > deploy > fly.es.md translation
1 parent 0eec3ff commit 34df90e

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

docs/deploy/fly.es.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,16 @@ Una vez que tu contenedor se construye, Fly inicia una instancia de él. Ejecuta
104104

105105
Por defecto, Fly volverá a la última versión funcional de tu aplicación si las comprobaciones de estado fallan para la nueva versión que intentaste desplegar.
106106

107+
Al desplegar un worker en segundo plano (con Vapor Queues), no cambies el CMD ni el ENTRYPOINT en tu Dockerfile; déjalos tal cual para que la aplicación web principal se inicie normalmente. En su lugar, añade una sección [processes] en tu archivo fly.toml como esta:
108+
109+
```
110+
[processes]
111+
app = ""
112+
worker = "queues"
113+
```
114+
115+
Esto indica a Fly.io que ejecute el proceso de la aplicación con el punto de entrada predeterminado de Docker (tu servidor web) y que el proceso del worker ejecute tu cola de tareas utilizando la interfaz de línea de comandos de Vapor (es decir, swift run App queues).
116+
107117
## Configurando Postgres
108118

109119
### Creando una base de datos Postgres en Fly

docs/deploy/fly.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ Once your container is built, Fly starts an instance of it. It will run various
8787

8888
By default, Fly will roll back to the latest working version of your app if health checks fail for the new version you attempted to deploy.
8989

90-
When delpoying a background worker (with Vapor Queues). Do not change the CMD or ENTRYPOINT in your Dockerfile; leave that as-is so the main web application starts normally. Instead, add a [processes] section in your fly.toml file like this:
90+
When deploying a background worker (with Vapor Queues). Do not change the CMD or ENTRYPOINT in your Dockerfile; leave that as-is so the main web application starts normally. Instead, add a [processes] section in your fly.toml file like this:
9191

9292
```
9393
[processes]
9494
app = ""
9595
worker = "queues"
9696
```
97-
This tells Fly.io to run the app process with the default Docker entrypoint (your web server), and the worker process to run your job queue using Vapor’s command-line interface (ie, swift run App queues).
9897

98+
This tells Fly.io to run the app process with the default Docker entrypoint (your web server), and the worker process to run your job queue using Vapor’s command-line interface (ie, swift run App queues).
9999

100100
## Configuring Postgres
101101

0 commit comments

Comments
 (0)