2013-08-01 26 views
0

使用Nitrous.IO,Firefox,Windows 7和企業互聯網運行「rails s」命令後,無法預覽Port 3000。無法預覽Rails服務器

預覽生成的標籤有消息「Problem loading page。Unable to connect。Firefox無法建立到服務器的連接ror-magic-19568.apse1.actionbox.io:3000。」

使用「rails s --port = port」命令預覽不同的端口也不能正常工作。

但預覽可以與Nitrous.IO,Firefox,Mac和私人家庭互聯網一起使用。 任何建議,使其與我的Windows 7電腦工作?謝謝。

從控制檯:

[email protected]:~/projects/learn-rails(master*)$ rails s                                    
=> Booting  WEBrick                                               
=> Rails 4.0.0 application starting in development on http://0.0.0.0:3000                                  
=> Run `rails server -h` for more startup options                                        
=> Ctrl-C to shutdown server                                             
[2013-08-01 01:21:52] INFO WEBrick 1.3.1                                          
[2013-08-01 01:21:52] INFO ruby 2.0.0 (2013-06-27) [x86_64-linux]                                   
[2013-08-01 01:21:52] INFO WEBrick::HTTPServer#start: pid=32467 port=3000 
+0

因此,它適用於您的家庭網絡,但不工作?也許有什麼東西在公司網絡上阻塞或使用端口3000? – danielM

+0

嘗試禁用防火牆(如果有的話) –

+0

或嘗試在端口80上運行它,以防您的公司網絡通過端口3000阻止傳出請求。 –

回答

1

亞硝酸箱只有HTTP端口3000 - 9000開放,所以你要對這些端口,在企業網絡上打開的一個運行軌道。