首页 > 解决方案 > Rails 服务器在命令行中工作。不在本地主机

问题描述

rails server

=> 引导彪马

=> Rails 5.2.0 应用程序开始开发

=> 运行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

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

说你忘了启动你的服务器

Running
Rails 5.2.0
Postgesql 9.6

标签: ruby-on-railspostgresqllocalhost

解决方案


它看起来像是http://www.localhost3000.org/一个网站,当您错误地尝试访问您的本地主机时,有人购买了该网站来帮助您。这不是您自己的服务器响应

正如该网站所建议的那样,尝试改为http://localhost:3000


推荐阅读