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
3
votes
3 answers

Access WEBrick server from outside

I want to be able to access my development server from a machine outside of my home. I have tried to run rvmsudo rails server -p 80, but when I try to access my computer with my IP, I get to the configuration page of my router... Any ideas?
ESoft
  • 852
  • 1
  • 8
  • 21
3
votes
1 answer

Rails server log not outputting immediately

We use Foreman to start all of our web processes in development. A while back, I tried to get the ruby-debugger gem working with this setup, but I couldn't, so I abandoned my effort. Along the way, I must have changed some setting or another, and…
djibouti33
  • 12,102
  • 9
  • 83
  • 116
3
votes
2 answers

Webrick dies with illegal instruction 4

Ever since switching to Mac based RoR development, I occasionally see that Webrick dies after simply printing 'Illegal Instruction 4'. OSX 10.7.2, 10.7.3 and now 10.7.4 ruby 1.9.2p290 rails 3.2.2, and various other version starting with 3.1 So…
RadBrad
  • 7,234
  • 2
  • 24
  • 17
2
votes
0 answers

Rails: server crashes after installing image magick to use with Carrier Wave

I just installed image magick on my Mac to use with the Ruby CarrierWave gem. However, when I upload a file, the localhost/webrick server crashes with more than 1000 lines of error messages. Before installing image magick, I could upload images…
Leahcim
  • 40,649
  • 59
  • 195
  • 334
2
votes
2 answers

Starting Rails server on boot on CentOS

I'm pretty new to rails and trying to figure things out, I looked online but not much luck. I have some servers that are running rails on startup without using rc.local at all, but I can't figure out why. All I need is for rails to start on boot in…
Darko
  • 535
  • 1
  • 6
  • 15
2
votes
0 answers

delayed_job 3.0.0 works in console but not WEBrick

Environment: Rails => 3.1.0 delayed_job => 3.0.1 delayed_job_active_record => 0.3.1 WEBrick => 1.3.1 ruby => 1.9.2 Code: class Comment < ActiveRecord::Base def tweet(tweet_msg) client = Twitter::Client.new …
Nomad
  • 118
  • 5
2
votes
1 answer

Adding ruby code to script/rails that only executes in rails development environment

I am using Rails 3 and have a need to run WEBrick with SSL support during development. To achieve this, I've followed this guide: http://www.nearinfinity.com/blogs/chris_rohr/configuring_webrick_to_use_ssl.html This works well, however, I want to…
YWCA Hello
  • 2,997
  • 4
  • 29
  • 40
2
votes
2 answers

Recommended development web server for Rails 3.1 and Ruby 1.9.2

I have been using Mongrel successfully with rails 2.* and 3.0* development, with ruby 1.8.7. I recently started working with Rails 3.1 and ruby 1.9.2. I got my test app running with WEBrick. I don't like WEBrick. If I forget and simply close the…
explainer
  • 1,345
  • 3
  • 11
  • 25
2
votes
1 answer

change rails app from webrick to passenger

Need some help moving a rails app from webrick to passenger with apache. Im very new to all this and i cant get it running with passenger. I have tried a bunch of guides and I am not getting any errors apart from the rails server always using…
glogic
  • 4,042
  • 3
  • 28
  • 44
2
votes
3 answers

Problem with Rails, Webrick or PostgreSQL? Malformed HTML generated after DB query

I am running Rails 3 on Ubuntu with PostgreSQL 8.4 and WEBrick. It has been working fine, but when displaying a large table (hundreds of rows), something is going wrong. The browser shows that the page is still loading, but it looks like the result…
B Seven
  • 44,484
  • 66
  • 240
  • 385
2
votes
5 answers

Ruby On Rails 3 and Webrick issue

Thanks for taking a look at this. I started a beginner's tutorial on RoR through lynda.com. I followed the instructions to the letter. Everything was working so far until I got to accessing Webrick. When I typed in "rails server" to begin work, I…
2
votes
1 answer

How do I set multiple cookies in a single Webrick response?

I use Webrick to test my HTTP client and I need to test how it gets and sets cookies. Wikipedia provides an example of such response: HTTP/1.0 200 OK Content-type: text/html Set-Cookie: theme=light Set-Cookie: sessionToken=abc123; Expires=Wed, 09…
Nakilon
  • 34,866
  • 14
  • 107
  • 142
2
votes
2 answers

For Ruby on Rails, when using Webrick, does it support concurrent requests and Keep-Alive, and why was loading .js and .png files so slow?

I am running Rails 3.0.5, and a page is reported on the console that it take 60ms, but if I check the Firefox Net load time chart, it takes 2.9 seconds. If I run the ab command on Bash, it says it take 300ms. So if remove the stand javascripts (6…
nonopolarity
  • 146,324
  • 131
  • 460
  • 740
2
votes
5 answers

Installed Ruby on Rails but when I try to run Rails Sever it doesn't load WEBrick?

I installed Ruby on Rails on my mac today along with Gems and MYsql. I'm trying to follow the lynda.com tutorial and I've run into a brick wall. When I try to run the rails server it doesnt load WEBrick for some reason. This is the error I…
newt
  • 21
  • 1
  • 2
2
votes
1 answer

Getting frequent "Redmine 500 Error" by 'undefined method' after Downgrading Ruby and Rails

I try to change Ruby version from 2.5.0 to 2.4.1 and Rails version from 5.1.2 to 4.2.1 because of applying plugin. Environment: Redmine version - 3.4.4.devel Ruby version - 2.4.1-p111 (2017-03-22) [x86_64-darwin16] Rails version -…
ibocon
  • 1,352
  • 3
  • 17
  • 40