webrick

Ruby On Rails 3 and Webrick issue

不羁的心 提交于 2019-11-29 12:22:08
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 got this error message below. /Library/Ruby/Gems/1.8/gems/mysql2-0.2.7/lib/mysql2/mysql2.bundle: dlopen(/Library/Ruby/Gems/1.8/gems/mysql2-0.2.7/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib (LoadError) Referenced from: /Library/Ruby/Gems/1.8/gems/mysql2-0.2.7/lib/mysql2/mysql2.bundle Reason: image not found - /Library/Ruby

OmniAuth Google OpenID WEBrick::HTTPStatus::RequestURITooLarge

非 Y 不嫁゛ 提交于 2019-11-29 05:38:44
I am using OmniAuth to allow users to log in with their Google OpenID accounts. When I try to log in in development mode with WEBrick, I get a WEBrick::HTTPStatus::RequestURITooLarge error. When I deploy it to my rails host, it works fine. Is there a different web server I should use instead of WEBrick? Strange, I wonder what the URI length limit is for WEBrick. You could try thin http://code.macournoyer.com/thin/ . I use this locally for development sometimes and it seems to work great. As mentioned in railscast 236 for OmniAuth, WEBrick has trouble with long urls given by OpenID. The

can't open rails server

﹥>﹥吖頭↗ 提交于 2019-11-28 21:24:58
问题 I don't know what I did. I think I updated my Ruby on Rails. After updating it, I always get error when running $rails server. output is ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/utils.rb:73:in `initialize': Address already in use - bind(2) (Errno::EADDRINUSE) I would restart the console and run rails server and it would work fine for a couple of minutes but then it would stop responding and if I restart rails server it would give me that error again. I tried running on different port (rails s

WEBrick: RequestURITooLarge: should I update or use a different server?

情到浓时终转凉″ 提交于 2019-11-28 12:17:52
I currently have: $ rails s => Booting WEBrick => Rails 3.0.9 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2011-11-30 13:18:00] INFO WEBrick 1.3.1 [2011-11-30 13:18:00] INFO ruby 1.9.2 (2011-02-18) [x86_64-darwin10.8.0] [2011-11-30 13:18:00] INFO WEBrick::HTTPServer#start: pid=4204 port=3000 The problem I'm having is I'm using openID for auth and getting the following error: [2011-11-30 13:18:19] ERROR WEBrick::HTTPStatus::RequestURITooLarge In the browser: Request-URI Too Large WEBrick::HTTPStatus::RequestURITooLarge

How to use deactivate Webrick's SSL

 ̄綄美尐妖づ 提交于 2019-11-28 06:54:10
Last week I tried to debug with SSL activated in webbrick, but I forget how to restore the settings to default(without SSL). Every time I visit a controller, now it shows: SSL connection error Unable to make a secure connection to the server. This may be a problem with the server, or it may be requiring a client authentication certificate that you don't have. Error 107 (net::ERR_SSL_PROTOCOL_ERROR): SSL protocol error. And below is the log from the console, can anyone help? [2011-05-10 07:28:43] INFO WEBrick 1.3.1 [2011-05-10 07:28:43] INFO ruby 1.8.7 (2009-06-12) [universal-darwin10.0] [2011

Ruby On Rails 3 and Webrick issue

时光总嘲笑我的痴心妄想 提交于 2019-11-28 06:26:34
问题 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 got this error message below. /Library/Ruby/Gems/1.8/gems/mysql2-0.2.7/lib/mysql2/mysql2.bundle: dlopen(/Library/Ruby/Gems/1.8/gems/mysql2-0.2.7/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib (LoadError) Referenced from:

Configuring WEBrick to use SSL in Rails 4

烈酒焚心 提交于 2019-11-28 05:27:21
I have a Rails App that I want to deploy on SharePoint 2013. In order to achieve some means of authentication, I need the WEBrick server to serve ssl https and listen to incoming https on port https://localhost:3001 . Unfortunately, I am not very experienced with configuring the server. I've have only found some outdated tutorials for older Rails version, that don't seem to do the job anymore. Any tips are greatly appreciated. I know you asked for WEBrick, and excuse me for suggesting something else, but I would really recommend you to use Thin ruby web server (faster and lighter), so you can

How to change default port of a Rails 4 app?

夙愿已清 提交于 2019-11-28 04:43:27
I know that I can start a rails server on another port via -p option. But I'd like to setup another port per application as long as I start webrick. Any ideas? Regards Felix Quick solution: Append to Rakefile task :server do `bundle exec rails s -p 8080` end Then run rake server Append this to config/boot.rb : require 'rails/commands/server' module DefaultOptions def default_options super.merge!(Port: 3001) end end Rails::Server.send(:prepend, DefaultOptions) Note: ruby >= 2.0 required. Option 1: You can launch WEBrick like so: rails server -p 8080 Where 8080 is your port. If you like, you can

Webrick as production server vs. Thin or Unicorn?

丶灬走出姿态 提交于 2019-11-28 03:01:11
It seems like it's taken for granted that you must not use Webrick as production server, but I can't really find anywhere mentioning why. The consensus seems to be: "Webrick is ok for development, but Thin or Unicorn is the choice for production, period." I did look up Thin server's homepage and it talks about requests/second but I don't really understand the graph since there's no annotation. Can anyone let me know why I should use Thin or Unicorn compared to Webrick? Also is there any benefit to using Webrick for development? I've been using Webrick since it comes with rails, and I think

OmniAuth Google OpenID WEBrick::HTTPStatus::RequestURITooLarge

最后都变了- 提交于 2019-11-27 23:15:51
问题 I am using OmniAuth to allow users to log in with their Google OpenID accounts. When I try to log in in development mode with WEBrick, I get a WEBrick::HTTPStatus::RequestURITooLarge error. When I deploy it to my rails host, it works fine. Is there a different web server I should use instead of WEBrick? 回答1: Strange, I wonder what the URI length limit is for WEBrick. You could try thin http://code.macournoyer.com/thin/. I use this locally for development sometimes and it seems to work great.