If you use RVM or rbenv to manage local Ruby SDKs, you can quickly set the required interpreter using Run Anything: Select the added interpreter and click OK in the Settings dialog. If you use Shadowenv to customize your project environment, pass a path to the project directory to the shadow exec command.Įxample: shadowenv exec -dir /Users/jetbrains/sample_app. envrc file to the direnv exec command.Įxample: direnv exec /Users/jetbrains/sample_app If you use direnv to load and unload environment variables, pass a path to the directory with the. Note that the *.sh file should have at the end to allow RubyMine to pass some commands required for adding an interpreter. If you use a shell script to load environment variables, you need to provide an absolute path to this script.Įxample: /bin/bash /Users/jetbrains/sample_app/env.sh Specify the environment variable values directly. Then, configure the Custom environment in one of the following ways: In the invoked dialog, provide a path to the Ruby executable as described in Add an interpreter. In the Ruby SDK and Gems page, click the button and select Interpreter with Custom Environment: To do this, you need to provide environment variable values or a path to a configuration script when adding a local interpreter. RubyMine allows you to use your custom environment for running any Ruby command from within RubyMine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |