简体   繁体   English

Rails Server在命令行中工作。 不在Localhost

[英]Rails Server working in command line. Not at Localhost

rails server

=> Booting Puma =>引导彪马

=> Rails 5.2.0 application starting in development => Rails 5.2.0应用程序正在开发中

=> Run rails server -h for more startup options =>运行rails server -h获得更多启动选项

[44266] Puma starting in cluster mode...
[44266] * Version 3.6.2 (ruby 2.5.1-p57), codename: Sleepy Sunday Serenity
[44266] * Min threads: 5, max threads: 5
[44266] * Environment: development
[44266] * Process workers: 1
[44266] * Preloading application
[44266] * Listening on tcp://localhost:3000
[44266] Use Ctrl-C to stop
[44266] - Worker 0 (pid: 44286) booted, phase: 0
^C[44266] - Gracefully shutting down workers...
[44266] === puma shutdown: 2018-06-12 14:28:53 -0500 ===
[44266] - Goodbye!
Exiting

went to http://www.localhost3000.org/ 去了http://www.localhost3000.org/

says you forgot to start your server 说你忘了启动服务器

Running
Rails 5.2.0
Postgesql 9.6

It looks like http://www.localhost3000.org/ is a website that someone bought to help you when you mistype your attempt to get to your localhost. 看起来http://www.localhost3000.org/是一个网站,有人在您输错访问本地主机的尝试时购买了该网站以帮助您。 It's not your own server responding 不是您自己的服务器响应

As the website suggests, try to go instead to http://localhost:3000 如网站所建议,尝试改为转到http://localhost:3000

Use this address localhost:3000 . 使用此地址localhost:3000 The link you included is a live website someone has published as a reminder to start your server. 您包含的链接是有人发布的实时网站,以提醒您启动服务器。

使用此地址http://localhost:3000但是您仍然可以编辑您的URL,请按照以下文章进行操作: 编辑localhost

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

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