Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8114949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:18:36+00:00 2026-06-06T03:18:36+00:00

I have Ruby script that creates a proxy so that I can make HTTP

  • 0

I have Ruby script that creates a proxy so that I can make HTTP request to a server from the command line using a session ID that the server expects.

First of all, the script works great when I run it from the command line

@web_server_thread = Thread.start do
  puts "Starting local proxy on port #{@port}"
  Rack::Handler::WEBrick.run WebServerProxy.new(@port, @host, @secure, @port2,    @default_module_host, @cookie) , :Port => @port
end

Returns

Starting local proxy on port 9292
[2012-06-15 11:29:03] INFO  WEBrick 1.3.1
[2012-06-15 11:29:03] INFO  ruby 1.9.3 (2012-04-20) [i386-mingw32]
[2012-06-15 11:29:03] INFO  WEBrick::HTTPServer#start: pid=6856 port=9292

I have been trying run this in RubyMine and the output in the console is always just:

Process finished with exit code 0

Question:

So my question is what can I do to configure RubyMine to run this script and if I cannot configure it to do so why not?

Other Information:

  • Windows 7

  • RubyMine v4.0.4

  • Ruby v1.9.3

As I noted above this is running as expected from the command line, so I am simply looking for an explanation of reasons why this is not working in RubyMine.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T03:18:37+00:00Added an answer on June 6, 2026 at 3:18 am

    I figured out what I was doing wrong and if I posted all 700 lines of the script you would have to. Prior to creating the thread above there was an if statement checking to make sure the name of the script was equal to a particular string (why I have no idea, I did not write this). When using RubyMine the name of the script included the full path on the server so that the logic starting the server never was executed using RubyMine but worked fine when I was using the command line.

    Edit

    The reason it was checking to see if it was itself was so that other scripts could require it and reuse the class.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a ruby script that creates a message using AMQP in RabbitMQ. #
I have the following Ruby script that creates a Debian package, which works fine:
I have a Ruby script that produces a Latex document using an erb template.
I have a Ruby script that generates a sed command to replace some PHP
I have a script in a Controller that I launch from the Ruby on
I have to execute a shell command from Ruby script but I have to
I have a ruby script that is using ActiveRecord (2.3.12) to access a MySQL
I have created one ruby script that I want to run with some flags
so i have ruby script that simply writes to a test.txt file with hello
I have a ruby script that does a few perforce operations (through the scripting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.