Closed dmytronasyrov closed 5 years ago
I have similar issue with the PID file configuration - the one in vm.args file gave me the same error. I looked around in the code and manage to find that in that particular case, when the provided value has the format of -kernel pidfile '"etc/server.pid"'
(notice the different order of '
and "
), the path variable in the code is a list and in the code the pid file is only initiated if the path variable is a binary.
I opened a PR https://github.com/bitwalker/distillery/pull/600 with a fix for this, feel free to test if this works for you.
@ardhena yes, it works with your fix! @bitwalker should accept your PR. Thank you
set erl_opts: "-kernel pidfile \'etc/server.pid\'"
in config.exs - doesn't work-kernel pidfile "'etc/server.pid'"
in vm.args - doesn't workPIDFILE=etc/server.pid
- this worksTrying to create PID file with kernel config but works only with env variable. Have tried different combinations of single and double quotes, but no luck. Any ideas or maybe a working snippet with a pidfile from vm.args or erl_opts? Thank you.