Skip to content

Commit

Permalink
fixed missing s as per Python string expression syntax (#990)
Browse files Browse the repository at this point in the history
supervisord uses the Python string expression syntax in its
configuration files, like this `%(ENV_X)s `
It's described here:
http://supervisord.org/configuration.html#environment-variables
In the "Deploy->Supervisor->Configure" section of the documentation the
final "s" were omitted:
https://docs.vapor.codes/deploy/supervisor/#configure
so copy-pasting this example was leading to wrong file names of the
logs.
For example, instead of the expected file name `hello-stdout.log` I had
the wrong `hellotdout.log`.
  • Loading branch information
asnov authored Jul 4, 2024
1 parent ae759d6 commit e6dcb13
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/deploy/supervisor.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ Each Vapor app on your server should have its own configuration file. For an exa
command=/home/vapor/hello/.build/release/App serve --env production
directory=/home/vapor/hello/
user=vapor
stdout_logfile=/var/log/supervisor/%(program_name)-stdout.log
stderr_logfile=/var/log/supervisor/%(program_name)-stderr.log
stdout_logfile=/var/log/supervisor/%(program_name)s-stdout.log
stderr_logfile=/var/log/supervisor/%(program_name)s-stderr.log
```

As specified in our configuration file the `Hello` project is located in the home folder for the user `vapor`. Make sure `directory` points to the root directory of your project where the `Package.swift` file is.
Expand Down
4 changes: 2 additions & 2 deletions docs/deploy/supervisor.nl.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ Elke Vapor toepassing op uw server zou zijn eigen configuratiebestand moeten heb
command=/home/vapor/hello/.build/release/App serve --env production
directory=/home/vapor/hello/
user=vapor
stdout_logfile=/var/log/supervisor/%(program_name)-stdout.log
stderr_logfile=/var/log/supervisor/%(program_name)-stderr.log
stdout_logfile=/var/log/supervisor/%(program_name)s-stdout.log
stderr_logfile=/var/log/supervisor/%(program_name)s-stderr.log
```

Zoals gespecificeerd in ons configuratie bestand staat het `Hello` project in de thuismap van de gebruiker `vapor`. Zorg ervoor dat `directory` wijst naar de root directory van uw project waar het `Package.swift` bestand staat.
Expand Down
4 changes: 2 additions & 2 deletions docs/deploy/supervisor.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ sudo dnf install supervisor
command=/home/vapor/hello/.build/release/App serve --env production
directory=/home/vapor/hello/
user=vapor
stdout_logfile=/var/log/supervisor/%(program_name)-stdout.log
stderr_logfile=/var/log/supervisor/%(program_name)-stderr.log
stdout_logfile=/var/log/supervisor/%(program_name)s-stdout.log
stderr_logfile=/var/log/supervisor/%(program_name)s-stderr.log
```

正如我们的配置文件中所指定的, `Hello` 项目位于用户 `vapor` 的主文件夹中。确保 `directory` 指向 `Package.swift` 文件所在项目的根目录。
Expand Down

0 comments on commit e6dcb13

Please sign in to comment.