简体   繁体   English

Ruby on Rails服务器和Rubymine IDE

[英]Ruby on Rails server and Rubymine IDE

So this time I did my research because of the downvoters... My question is following. 所以这一次我因为选票不足而进行了研究。 I am using "Rubymine IDE" for development of Rails application on Win 10 PC, but I can't connect to rails server. 我在Win 10 PC上使用“ Rubymine IDE”开发Rails应用程序,但无法连接到Rails服务器。 I have tried connecting through console, and localhost:3000 and 127.0.0.3000 and 127.0.0.1.3000 but none of them do not work. 我尝试通过控制台以及localhost:3000和127.0.0.3000和127.0.0.1.3000连接,但是它们都不起作用。 I have tried creating the project file through console and then running server and it still doesn't work. 我尝试通过控制台创建项目文件,然后运行服务器,但仍然无法正常工作。 I have XAMPP installed and that works perfectly fine. 我已经安装了XAMPP,并且工作正常。 I have tried Firefox, Chrome and Edge for browsers. 我已经尝试过将Firefox,Chrome和Edge用于浏览器。 I am using commands such as ruby -s and rails -s and start rails server or ruby server, on the command rails -s I just get list of commands in the console and no results. 我在使用命令如ruby -s和rails -s并启动rails服务器或ruby服务器,在命令rails -s上我只是在控制台中获得命令列表,但没有结果。 I really need to get this thing working. 我真的需要使这件事起作用。 I do not know if I need some extra commands to be typed or something else??? 我不知道是否需要输入一些额外的命令或其他内容??? I can't add images to my posts yet, bu here is the list of gems I have on my PC * LOCAL GEMS * 我还不能将图像添加到帖子中,但是这里是我PC上的宝石列表*本地宝石*

actioncable (5.1.4) actionmailer (5.1.4) actionpack (5.1.4) actionview (5.1.4) activejob (5.1.4) activemodel (5.1.4) activerecord (5.1.4) activesupport (5.1.4, 4.2.5) addressable (2.5.2) arel (8.0.0) bigdecimal (default: 1.3.0) bindex (0.5.0) builder (3.2.3) bundler (1.16.0) byebug (9.1.0) capybara (2.15.4) childprocess (0.8.0) coffee-rails (4.2.2) coffee-script (2.4.1) coffee-script-source (1.12.2) concurrent-ruby (1.0.5) crass (1.0.2) did_you_mean (1.1.0) erubi (1.7.0) erubis (2.7.0) execjs (2.7.0) ffi (1.9.18 x64-mingw32) globalid (0.4.1) i18n (0.9.1, 0.8.1) io-console (default: 0.4.6) jbuilder (2.7.0) json (default: 2.0.4, 1.8.6) loofah (2.1.1) mail (2.7.0) method_source (0.9.0) mini_mime (0.1.4) mini_portile2 (2.3.0, 2.1.0) minitest (5.10.3, 5.10.1) multi_json (1.12.2) net-telnet (0.1.1) nio4r (2.1.0) nokogiri (1.8.1 x64-mingw32) openssl (default: 2.0.5) power_assert (0.4.1) psych (default: 2.2.2) public_suffix (3.0.0) puma (3.10.0) rack (2.0.3) rack-test (0.7.0) rails (5.1.4) rai actioncable(5.1.4)actionmailer(5.1.4)actionpack(5.1.4)actionview(5.1.4)activejob(5.1.4)activemodel(5.1.4)activerecord(5.1.4)activesupport(5.1.4,4.2。 5)可寻址(2.5.2)范围(8.0.0)大十进制(默认值:1.3.0)bindex(0.5.0)构建器(3.2.3)捆绑器(1.16.0)byebug(9.1.0)水豚(2.15。 4)子进程(0.8.0)coffee-rails(4.2.2)coffee-script(2.4.1)coffee-script-source(1.12.2)current-ruby(1.0.5)crass(1.0.2)did_you_mean( 1.1.0)erubi(1.7.0)erubis(2.7.0)execjs(2.7.0)ffi(1.9.18 x64-mingw32)globalid(0.4.1)i18n(0.9.1,0.8.1)io-console (默认值:0.4.6)jbuilder(2.7.0)json(默认值:2.0.4,1.8.6)丝瓜络(2.1.1)邮件(2.7.0)method_source(0.9.0)mini_mime(0.1.4)mini_portile2 (2.3.0,2.1.0)最小(5.10.3,5.10.1)multi_json(1.12.2)net-telnet(0.1.1)nio4r(2.1.0)nokogiri(1.8.1 x64-mingw32)openssl(默认值:2.0.5)power_assert(0.4.1)Psych(默认值:2.2.2)public_suffix(3.0.0)puma(3.10.0)机架(2.0.3)机架测试(0.7.0)导轨(5.1。 4)莱 ls-dom-testing (2.0.3) rails-html-sanitizer (1.0.3) railties (5.1.4) rake (12.2.1, 12.0.0) rb-fsevent (0.10.2) rb-inotify (0.9.10) rdoc (default: 5.0.0) rubyzip (1.2.1) sass (3.5.3) sass-listen (4.0.0) sass-rails (5.0.6) selenium-webdriver (3.7.0) sprockets (3.7.1) sprockets-rails (3.2.1) sqlite3 (1.3.13 x64-mingw32) test-unit (3.2.3) thor (0.20.0) thread_safe (0.3.6) tilt (2.0.8) turbolinks (5.0.1) turbolinks-source (5.0.3) tzinfo (1.2.4, 1.2.3) tzinfo-data (1.2017.3) uglifier (3.2.0) web-console (3.5.1) websocket-driver (0.6.5) websocket-extensions (0.1.2) xmlrpc (0.2.1) xpath (2.1.0) ls-dom-testing(2.0.3)rails-html-sanitizer(1.0.3)railties(5.1.4)耙(12.2.1,12.0.0)rb-fsevent(0.10.2)rb-inotify(0.9。 10)rdoc(默认:5.0.0)rubyzip(1.2.1)sass(3.5.3)sass-listen(4.0.0)sass-rails(5.0.6)selenium-webdriver(3.7.0)链轮(3.7。 1)链轮轨道(3.2.1)sqlite3(1.3.13 x64-mingw32)测试单元(3.2.3)雷神(0.20.0)thread_safe(0.3.6)倾斜(2.0.8)涡轮链接(5.0.1 )turbolinks-source(5.0.3)tzinfo(1.2.4,1.2.3)tzinfo-data(1.2017.3)uglifier(3.2.0)Web控制台(3.5.1)websocket驱动程序(0.6.5)websocket -extensions(0.1.2)xmlrpc(0.2.1)xpath(2.1.0)

Do you have a specific versions of gems installed for Ruby and Rails to work? 您是否已安装特定版本的gem,以使Ruby和Rails正常工作? If not try to install using 如果没有尝试使用安装

gem install ruby #This will install latest version of ruby

and for reference, can you post an image or something which specifies what is happening when you type rails s 作为参考,您是否可以张贴图像或某些东西指定当您键入rails s时发生了什么

Update: 更新:

bundle install

This should install all the missing gems and your server should be up and running! 这应该安装所有缺少的gems,并且您的服务器应该已启动并正在运行!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM