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
0
votes
1 answer

rails webrick httpserver encoding issue

I was trying to open a small and simple http server to share some files on LAN (or online on public IP). On a bit of research i found python -m SimpleHTTPServer does the job but it has horrible concurrent request issues. Users tell me that when…
saGii
  • 447
  • 5
  • 14
0
votes
1 answer

Ruby code on NFS mount, using another file on same mount causes problems

I'm working on an embedded system whoose details are explained at the end of this post. Tools are ruby on linux. I put my ruby code on a remote NAS device on network and mount it to the embedded system I'm working on using NFS v3. My project…
Cihan Keser
  • 3,190
  • 4
  • 30
  • 43
0
votes
1 answer

WARN TCPServer Error: Address already in use - bind(2) in linux EC2 and Heroku servers

[2013-01-29 09:17:50] INFO WEBrick 1.3.1 [2013-01-29 09:17:50] INFO ruby 1.8.7 (2012-10-12) [i386-linux] [2013-01-29 09:17:50] WARN TCPServer Error: Address already in use - bind(2) [2013-01-29 09:17:50] INFO WEBrick::HTTPServer#start: pid=4107…
luisfer
  • 125
  • 2
  • 10
0
votes
1 answer

Running rails server -e production on localhost with config.assets.compile = false breaks Rails Asset Pipeline

I am attempting to migrate our application to use the Asset Pipeline, so i have been testing my changes locally (using the built in Webrick server). My production.rb looks like this: # Disable Rails's static asset server (Apache or nginx will…
rwb
  • 4,309
  • 8
  • 36
  • 59
0
votes
2 answers

Access Webrick Rails Server from local network

Hello i am trying to access my Webrick rails server that i started on my ubuntu to my windows 7 pc locally. I checked on ifconfig in my virtual box and used the inet:10.0.2.15 when i run my rails server and also used port 80 like this: rails server…
0
votes
1 answer

Two Redmine 1.4 instances on same machine with very different performance on WEBrick

I installed Redmine 1.4 on Windows Server 2003 and MySQL. As after some time the instance became used by more people, I needed another one for testing (i.e. a development environment). As I also wanted to be able to test plugins without the risk of…
mmm
  • 1,277
  • 5
  • 18
  • 34
0
votes
1 answer

Slow HTTP Load with the Assets Folder of the Project - Ruby on Rails, Webrick, Localhost, Firefox

The HTTP Protocol: Notice: The cache has been cleared before recording the HTTP protocol. This is a HTTP protocol of the HTTP Watch Addon for Firefox: http://www.mediafire.com/view/?wccimru3qdu19s2# The HTTP load is around 5 seconds. The status code…
0
votes
1 answer

The "304 Not Modified" Processing Message with the Webrick Server Application - Localhost

The 304 Not Modified processing message is occurring with every JavaScript (.js) file type in the assets folder of the project, on the localhost. The experienced problem is a slow loading time of the web pages. Is there anything specific with…
0
votes
2 answers

ruby webrick and cgi

I can't get Webrick to work with the servlet HTTPServlet::CGIHandler--I get an EACCES error: [2012-12-06 01:38:02] ERROR CGIHandler: /tmp/cgi-bin: /Users/7stud/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpservlet/cgi_runner.rb:46:in…
7stud
  • 46,922
  • 14
  • 101
  • 127
0
votes
3 answers

Rails Application Deployment: Webserver shuts down.

I have the code and db set up on the server. I run the command rails s, but the server shutsdown once my local system shuts down. Is there a way to keep the webserver running on the server. Capistrano might not be necessary as i have the code on the…
LS2
  • 152
  • 3
  • 16
0
votes
1 answer

Finding rails process server ID debian

OK guys, So i managed to get ruby and rails and all necessary gem installed on out server, (if anyone saw my last question, the firewall was blocking the download of the various packages and gems so they were being currupted) and I started up the…
user1759942
  • 1,322
  • 4
  • 14
  • 33
0
votes
1 answer

Error 505 Getaway Time Out Error

Performing severe methods to analyze text in rails. The problem is, when the user loads a text file on the server is processing it (there is a search keyword rankings are calculated every word and many others) are obtained as a result, that while…
0
votes
1 answer

Why won't my new Ruby on Rails site start in development?

I'm using user-per-app configuration on an Ubuntu server running ruby 1.9.3 and rails 3.2.8. When I create a new site using rails new test_app in the home directory of one user (my main user) and then run rails s from the app directory I get Rails…
cori
  • 8,666
  • 7
  • 45
  • 81
0
votes
1 answer

Error while starting WEBrick server using rails

I have an existing application with database ready I have made all the changes in database.yml and did bundle install when I am trying to do rails s to start the WEBrick server I am getting the following error…
Arihant Godha
  • 2,339
  • 2
  • 26
  • 50
0
votes
1 answer

Rails server fails to start with exit code 1 in rubymine

I was using my server yesterday no problem. Came back today with an error when starting the server runnerw.exe C:\Ruby187\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)…
Stefan Dunn
  • 5,363
  • 7
  • 48
  • 84