Questions tagged [webrick]

Webrick is a zero-configuration HTTP server stack chiefly used as the web server for the Ruby on Rails framework development and test environments.

WEBrick is an HTTP server toolkit that can be configured as an HTTPS server, a proxy server, and a virtual-host server. WEBrick features complete logging of both server operations and HTTP access.

A WEBrick server can be composed of multiple WEBrick servers or servlets to provide differing behavior on a per-host or per-path basis. WEBrick includes servlets for handling CGI scripts, ERb pages, ruby blocks and directory listings.

WEBrick also includes tools to run a process as a service and starting a process at a higher privilege level and dropping permissions.

From the version of ruby 1.9.1 Webrick is a part of ruby standard library. More info is on ruby docs. Sources for an older ruby version is on github.

523 questions
2
votes
3 answers

Rails 3 Locale switches when using different server

I've got a Rails 3.2.3 app with the default_locale set to :nl. When I start the app using Thin or Unicorn, the app's locale is set to :en. When I use Webrick, the locale is correctly set to :nl. This change is triggered by a commit that updates…
avdgaag
  • 41,292
  • 7
  • 29
  • 26
2
votes
1 answer

How to stop Ruby WEBrick app from Terminal in Xubuntu

I started learn Ruby. I tried to work with WEBrick server. After ruby index.rb command server starts. And how to stop it? I tried Ctrl+c, Ctrl+X and other. It still working. Then I pushed Ctrl+Z. Bash said: [1]+ Stopped ruby index.rb. But process…
nkuhta
  • 10,388
  • 12
  • 41
  • 54
1
vote
1 answer

Why do I always have to restart the Rails server?

Every time I change anything, I have to restart the server for it to take effect. But that wasn't always the case, it used to work normally before, when I changed anything, it used to get updated automatically.. what happened?
user1069624
  • 561
  • 2
  • 9
  • 24
1
vote
1 answer

Rails 3.2 - every action in the app is loaded twice

When I take a look into the terminal's output (I use server WEBRick on my localhost), so I see there that every action (no matter what controller) is called twice, always (the second one always 1-2 seconds after the first). Didn't has anyone the…
user984621
  • 46,344
  • 73
  • 224
  • 412
1
vote
1 answer

Ruby and Webrick Video Streaming

I am developing a web-app that will stream a database of videos, but I am having difficulties with Webbrick and HTML5 Video. I am using a simple HTML tag but the video won't seem to show up. any help ? (the file path is correct btw). Here is my HTML…
Test Test
  • 2,831
  • 8
  • 44
  • 64
1
vote
1 answer

dhtmlxGrid Editable Grid Errno:ECONNRESET

I am very new to Ruby and Rails. I use rails 3.0.9 and ruby 1.9.2 I used the dhtmlxGrid shown on this page: http://www.dhtmlx.com/blog/?p=426 I randomly get the following Error after adding and deleting a few Entries in the grid: "ERROR…
1
vote
1 answer

Rails only responds when accessed from local machine

I'm running a Rails application on a Mac Mini server machine (with Webrick, running ruby 1.9.2 using rvm). It works fine when I run it locally on my MacBook, and it was working before I reinstalled rvm, but now whenever I try to access it from a…
grautur
  • 29,955
  • 34
  • 93
  • 128
1
vote
1 answer

Synchronize threads to the WEBrick server start

I am trying to start a small WEBrick server to mock a real API, to test a Ruby http client I am developing. I am using a modified solution of the one based in this blog comment. It works fine, but the problem is that each time the server starts, the…
ldnunes
  • 178
  • 3
  • 14
1
vote
1 answer

Ruby on Rails "hot deploy" not working

I don't know if the correct title for this is hot deploy. I am modifying controllers and views and I have to restart the server to view those changes. Why? I think that it didn't worked like this. I am using webrick server. Environment is…
Tony
  • 10,088
  • 20
  • 85
  • 139
1
vote
1 answer

Rails server shutting down - http.rb:678: bug segmentation

In my Rails 3 app I am attempting to load a User's tweets in a div container when I click a link. Sometimes when I do this I get a result. Other times my rails server shuts down and I get a huge error. What is going on? Here is the controller action…
tvalent2
  • 4,959
  • 10
  • 45
  • 87
1
vote
2 answers

Somehow WEBrick is taking over my Sinatra app launch, how to turn it off?

A while ago, I was fooling around with Node.js (I don't really remember what I did). Now, whenever I launch Sinatra apps, I get this: mba:sinatra chromium$ ruby basics.rb [2011-12-16 18:38:23] INFO WEBrick 1.3.1 [2011-12-16 18:38:23] INFO ruby…
element119
  • 7,475
  • 8
  • 51
  • 74
1
vote
2 answers

How to set webrick server to use ruby 1.9.3?

Can rails server be specified for the particular ruby version? I'm on windows using gitbash and pik. I have ruby 192 and 193 installed via rubyinstaller. Pik is setup after much adding of .bashrc .pikrc and editing config.yml files. I can switch…
sf2k
  • 592
  • 2
  • 6
  • 25
1
vote
1 answer

how to disable WEBrick Server header

I've developed a web application in Ruby (using Sinatra framework if that matters). It adds a Server header to every HTTP response: Server: WEBrick/1.3.1 (Ruby/1.9.3/2011-09-23) How do I disable it?
Oleg Mikheev
  • 17,186
  • 14
  • 73
  • 95
1
vote
1 answer

How to get Processing Type from Controller (Rails)

When an HTTP request comes into the server (in this case I'm running rails s which defaults to webrick) the message looks something like: Started POST "/cards" for 127.0.0.1 at 2011-11-05 15:04:29 -0400 Processing by CardsController#create as…
cmwright
  • 3,406
  • 5
  • 26
  • 33
1
vote
1 answer

Setting up production server on development machine to work with the rails 3 asset pipeline

On my local machine running in production mode (ie, rails s -e production) using webrick, I've generated the css using RAILS_ENV=production bundle exec rake assets:precompile, which creates application-d2bcfd35ef1c0c30b7a7ca94e52c0cbd.css, which the…
zlog
  • 3,316
  • 4
  • 42
  • 82