The project is using Ruby Webpacker and Lando is used for local development.
My config/webpacker.yml
contains this:
development:
<<: *default
compile: true
dev_server:
public: some.lndo.site
host: '0.0.0.0'
port: 3035
...
watch_options:
poll: 1000
aggregate_timeout: 500
So, insetad of adding/editing parameters in webpacker.yml
for my local environment I can set some of these options as environmental variables in my .lando.yml
file (i.e. public
, host
, port
):
services:
appserver:
type: ruby:2.6.3
overrides:
environment:
WEBPACKER_DEV_SERVER_PUBLIC: some.lndo.site
WEBPACKER_DEV_SERVER_HOST: '0.0.0.0'
WEBPACKER_DEV_SERVER_PORT: '3035'
...
This works.
Question: But how can I set the environmental variables for watch-options
(i.e. poll
) via environmental variable?
I've tried these, but with no luck:
WEBPACKER_DEV_SERVER_WATCHOPTIONS_POLL
WEBPACKER_DEV_SERVER_WATCH_OPTIONS_POLL
WEBPACKER_DEV_SERVER_POLL