Getting "jruby: no Ruby script found in input (LoadError)" while running rails application in Rubymine
Asked Answered
S

1

0

Apologies if it's a duplicate question. Asking this as I haven't got any solution yet. Trying to run rails application in Rubymine. I have setup the configuration in Rubymine so that on click on run button, rails server starts. Through command line, rails s works.

Getting this below error when I click on Run button to start rails server in development mode.

/opt/jruby/bin/jruby -x /opt/jruby/bin/bundle exec /opt/jruby/bin/jruby /Users/satyapramod/Documents/rails_projects/test-app/script/rails server -b 0.0.0.0 -p 3000 -e development
jruby: no Ruby script found in input (LoadError)

Process finished with exit code 1

This project is using jruby. Here are the jruby and rails versions. jruby: 9.1.17.0 rails: 2.3.0 Using mac OS monterey 12.3

Please suggest me where I am going wrong. Let me know if anything is required from my end. Thanks

Soaring answered 24/3, 2022 at 12:2 Comment(0)
Q
0

I once solved this problem by disabling Bundler Auto-detection. Attaching screenshot for reference. enter image description here

Qatar answered 17/7, 2022 at 8:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.