ruby-on-rails - 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
解决方案
它看起来像是http://www.localhost3000.org/
一个网站,当您错误地尝试访问您的本地主机时,有人购买了该网站来帮助您。这不是您自己的服务器响应
正如该网站所建议的那样,尝试改为http://localhost:3000
推荐阅读
- rust - 传递对此方法的引用并期望关闭的唯一选择是不安全的吗?
- python - 如何用更有效的代码替换“for”循环以进行股市分析示例
- kdb - 使用正则表达式获取子列表
- ajax - 如何使用数组调用控制器方法
- node.js - 可以使用 google-auth-library 进行一批请求吗?
- c# - c# win app forms检测图像上的人脸数量,如果超过1张人脸提示错误信息
- javascript - 用于在动态添加的行上禁用文本字段的复选框
- powershell - Power Apps PowerShell:找不到“UserCredential”和参数计数的重载:“2”
- maven - 控制每次执行时继承的 Maven 插件
- sql - 如何从不同格式的日期按月-年分组 (SQL)