Can environment variables be provided for RubyMine tasks?

Is it possible to provide environment variables for RubyMine tasks (such as "rails generate") as a project level configuration?

To be clear - I am not referencing run / debug configurations unless the mechanism is available to use environment variables defined in such a configuration during Ruby calls made from other parts of RubyMine (or the IntelliJ Ruby plugin that is built from that same codebase as RubyMine and this is what I actually use).


RubyMine makes it easy to set up environment variables that are in effect when a program is run or debugged. By contrast, consider the situation outlined here: Selecting a Rails environment with "generation rails" Command

... in which the user fixes the problem by ensuring that the environment variable is set whenever RubyMine calls rails generate

on his project.

How can this solution be extended to RubyMine?

+3


source to share





All Articles