You can select a specific web server by using the BP_WEB_SERVER
variable.
The available values are:
nginx
for Nginxhttpd
for Apache2Here is an example to set it to Nginx with the Runway CLI or a project.toml
file in the root of your repository:
runway app config set BP_WEB_SERVER=nginx
[build]
[[build.env]]
name = "BP_WEB_SERVER"
value = "nginx"
By setting the BP_WEB_SERVER
variable, the buildpacks in Runway’s build pipeline will generate the complete configuration file for you.
If you wish to provide the complete configuration yourself, then put an nginx.conf
or a httpd.conf
file in the your repository and remove BP_WEB_SERVER
. Runway will select the appropriate web server and use your configuration!