webrick

WEBrick fails to start default rails app: “uninitialized constant ActiveRecord::ConnectionAdapters::Column::Format”

不打扰是莪最后的温柔 提交于 2019-12-23 02:17:07
问题 I'm trying to begin Ruby on Rails development on a Windows machine, but I can't get WEBrick to start the default Rails app. Here's the output from my attempt to create and start the app: C:\Users\my_user>ruby -v ruby 2.2.4p230 (2015-12-16 revision 53155) [i386-mingw32] C:\Users\my_user\Desktop\wkspc>rails new sample_app [...] Bundle complete! 11 Gemfile dependencies, 57 gems now installed. Use `bundle show [gemname]` to see where a bundled gem is installed. C:\Users\my_user\Desktop\wkspc>cd

Why RubyMine 2.0.2 starts Webrick on different port each time I run/debug my app?

穿精又带淫゛_ 提交于 2019-12-22 10:28:58
问题 Each time I start my Rails 2.3.8 webapp under RubyMine, it's using a different port. This drives me mad, since I've to change the URL in the browser each time I want to test something. I'm unable to find any configuration option to change that. Anyone? 回答1: This may not help because I'm using RubyMine 3, however, there is a dropdown menu in my toolbar for selecting the different development environments (e.g. production, development). The dropdown menu is to the left of the green "Run"

Running Webrick server in background?

不想你离开。 提交于 2019-12-20 12:36:24
问题 MBPro:shovell myname$ ruby script/server => Booting WEBrick => Rails 2.3.8 application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2010-08-01 15:28:35] INFO WEBrick 1.3.1 [2010-08-01 15:28:35] INFO ruby 1.9.1 (2010-07-02) [i386-darwin10.4.0] [2010-08-01 15:28:35] INFO WEBrick::HTTPServer#start: pid=36349 port=3000 After this command, I have to keep the terminal open, can't even get out using Cmd+z. Can't I run it as a background service? Thanks 回答1:

how to controller (start/kill) a background process (server app) in ruby

我怕爱的太早我们不能终老 提交于 2019-12-20 09:47:24
问题 i'm trying to set up a server for integration tests (specs actually) via ruby and can't figure out how to control the process. so, what i'm trying to do is: run a rake task for my gem that executes the integration specs the task needs to first start a server (i use webrick) and then run the specs after executing the specs it should kill the webrick so i'm not left with some unused background process webrick is not a requirement, but it's included in the ruby standard library so being able to

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

微笑、不失礼 提交于 2019-12-19 10:51:03
问题 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 get: /Library/Ruby/Gems/1.8/gems/railties-3.0.5/lib/rails/script_rails_loader.rb:11: warning: Insecure world writable dir /usr/local in PATH, mode 040777 /Library/Ruby/Gems/1.8/gems/bundler-1.0.10/lib/bundler/runtime.rb:136: warning: Insecure world writable

How do I configure WEBrick to use an intermediate certificate with HTTPS?

ぐ巨炮叔叔 提交于 2019-12-19 05:34:11
问题 I am currently using the following options in my Rails app to enable HTTPS with WEBrick: { :Port => 3000, :environment => (ENV['RAILS_ENV'] || "development").dup, :daemonize => false, :debugger => false, :pid => File.expand_path("tmp/pids/server.pid"), :config => File.expand_path("config.ru"), :SSLEnable => true, :SSLVerifyClient => OpenSSL::SSL::VERIFY_NONE, :SSLPrivateKey => OpenSSL::PKey::RSA.new( File.open("certificates/https/key.pem").read), :SSLCertificate => OpenSSL::X509::Certificate

Access webrick/rails from another computer on local network

↘锁芯ラ 提交于 2019-12-18 10:08:12
问题 I have a rails application running on localhost:3000. I wish to access it from another computer on the same network. I feel like i've done this before with ease, but it's giving me some grief. I can ping the IP of the computer just fine, but hitting ip:3000 in the browser doesnt work. I tried launching rails s -b ipaddress as well, and no luck. Suggestions? 回答1: Try running the server on port 80 instead, your firewall is probably blocking port 3000. 回答2: After making sure your server side

Server is already running in Rails

纵饮孤独 提交于 2019-12-17 15:02:42
问题 When I am starting rails server using rails s command it is showing A server is already running. Check C:/Sites/folder/Pids/Server.pids When I open the file it is outputting a 4 digit number only so how could I resolve this issue ? FYI No other instance of Rails cmd is running this time. Checked Task manager but only cmd.exe is showing no else process is running. (using Windows). 回答1: Remove the file: C:/Sites/folder/Pids/Server.pids Explanation In UNIX land at least we usually track the

Rails webrick force-exits: uninitialized constant WebConsole::Railtie::Middleware (NameError)

a 夏天 提交于 2019-12-13 18:13:42
问题 So I'm a newbie in ruby trying to start up webrick for the first time. I just recently fixed the segmentation fault error with the mysql2, and got hit with this new exit issue. Here's the command line readout: G:\Ruby Development\simple_cms> G:\Ruby Development\simple_cms>rails server => Booting WEBrick => Rails 4.2.1 application starting in development on http://localhost:3000 => Run rails server -h for more startup options => Ctrl-C to shutdown server Exiting C:/Ruby22-x64/lib/ruby/gems/2.2

When I start the server in Ruby On Rails it exits as soon as it starts and sometimes doesn't even start, just gives an error

梦想与她 提交于 2019-12-13 08:45:13
问题 This is the error message in Windows: C:\Users\USER\Sites\new_cms>rails s C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.6.2-x64-mingw32/lib/nokogir .rb:29:in `require': cannot load such file -- nokogiri/nokogiri (LoadError) from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.6.2-x64-mingw3 /lib/nokogiri.rb:29:in `rescue in <top (required)>' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.6.2-x64-mingw3 /lib/nokogiri.rb:25:in `<top (required)>' from C:/Ruby22-x64/lib/ruby