Creating a custom script configuration
Hello,
I'm using RubyMine 2.5 EAP with a Rails 3 engine. The top level directory of the project is not a functioning rails application, but the engine actually bundles a Rails app.. I'd like to create a configuration script which can run the bundled Rails app.
You can see the structure here: http://github.com/biv/inkling .
Specifically, I want to create a configuration script to run testapp/script/rails server .
How can I add my own scripts and/or arguments to the configurations to allow for this?
Cheers,
Nicholas Faiz.
Please sign in to leave a comment.
Hello Nicholas,
Open Main Menu | Run | Edit Configurations dialog, add new "Ruby" run configuration (plus button). Specify ../testapp/script/rails script as "Ruby Script", add "server" to "Script Arguments", most likely you need to set "work directory" to "../testapp" folder.
Unfortunately we don't provide any special support for Rails engines. So all rails codeinsight wont be available for your "testapp". Probably it is easier to open "testapp" folder as separate project.