localhost:3000 链接在使用 Rails 部署时显示空白页面
localhost:3000 links showing a blank page when deployed with Rails
我之前一直在开发 rails 应用程序,服务器运行良好。
我把它关了,做了一个新的 https://bitbucket.org/ScarletMcLearn/sample_app
现在,当我启动服务器时,http://localhost:3000, http://localhost:3000/static_pages/home 和其他任何内容都保持空白。
我尝试使用谷歌搜索并阅读了其他一些 Whosebug 帖子,但它们对我不起作用。我正在使用 Mac - 如果有帮助的话。
真的希望你能在这里帮助我,我是 Rails 的新手,因此非常感谢简单的说明。所有文件都在 Bitbucket link 中。
感谢阅读。 :D
部署 rails 服务器后:
Macs-MacBook-Pro:sample_app mac$ rails server
=> Booting Puma
=> Rails 5.0.0.1 application starting in development on http://localhost:3000
=> Run rails server -h
for more startup options Puma starting in single mode...
* Version 3.4.0 (ruby 2.3.0-p0), codename: Owl Bowl Brawl
* Min threads: 5, max threads: 5
* Environment: development
* Listening on tcp://localhost:3000 Use Ctrl-C to stop
在 localhost:3000
上已有服务器 运行ning
在您的应用中转到:
tmp/pids/server.pid
删除该文件中的号码并保存。
现在退出你的 rails 服务器
并且 运行 rails server -p 4000
(除 3000 以外的任何值)。
然后去那个新地址https://localhost:4000。
或
重新启动你的电脑(你不想走那条邪恶的路)。
我之前一直在开发 rails 应用程序,服务器运行良好。 我把它关了,做了一个新的 https://bitbucket.org/ScarletMcLearn/sample_app
现在,当我启动服务器时,http://localhost:3000, http://localhost:3000/static_pages/home 和其他任何内容都保持空白。
我尝试使用谷歌搜索并阅读了其他一些 Whosebug 帖子,但它们对我不起作用。我正在使用 Mac - 如果有帮助的话。
真的希望你能在这里帮助我,我是 Rails 的新手,因此非常感谢简单的说明。所有文件都在 Bitbucket link 中。
感谢阅读。 :D
部署 rails 服务器后:
Macs-MacBook-Pro:sample_app mac$ rails server => Booting Puma => Rails 5.0.0.1 application starting in development on http://localhost:3000 => Run
rails server -h
for more startup options Puma starting in single mode... * Version 3.4.0 (ruby 2.3.0-p0), codename: Owl Bowl Brawl * Min threads: 5, max threads: 5 * Environment: development * Listening on tcp://localhost:3000 Use Ctrl-C to stop
在 localhost:3000
上已有服务器 运行ning在您的应用中转到:
tmp/pids/server.pid
删除该文件中的号码并保存。
现在退出你的 rails 服务器
并且 运行 rails server -p 4000
(除 3000 以外的任何值)。
然后去那个新地址https://localhost:4000。
或
重新启动你的电脑(你不想走那条邪恶的路)。