Ruby or Node.js environment variables list is empty

Created:

2017-04-25 15:52:41 UTC

Modified:

2017-08-16 16:42:40 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Ruby or Node.js environment variables list is empty

Applicable to:

  • Plesk Onyx for Linux
  • Plesk Onyx 17.5 for Linux

Symptoms

Ruby or Node.js environment variables list is reset if the directive containing all variables is longer than 256 characters.

Cause

This is an internal issue with ID #EXTRUBY-39 for Ruby and #EXTNODEJS-50 for Node.js that are planned to be fixed in future product updates.

Resolution

As a workaround, use the following:

For the domains served by Apache set the variable via Additional Apache directives in Domains > example.com > Apache & nginx Settings as follows:

SetEnv <variable> <value>

For the domains served by nginx set the variable via Additional nginx directives in Domains > example.com > Apache & nginx Settings as follows:

passenger_env_var $<variable> <value>;
Have more questions? Submit a request
Please sign in to leave a comment.