当我运行"rails server"并尝试打开任何项目时,当我尝试打开localhost:3000时,我会得到这个错误:Error
但是这是我的终端说的:
问题在于我以为是因为我将其推送到git heroku导致它失败,所以另一个表单说要卸载heroku,但是那也没有起作用,我仍然会得到这个错误。
以前,rails服务器只会停留在“使用Ctrl-C停止”,但现在它有了这些工作人员ID和其他内容。它们可能是在我安装heroku并尝试使用git heroku推送我的项目时发生的。未来参考中这些工作者意味着什么,如何再次连接到本地主机?
根据其他stackexchange建议,我已经尝试过以下方法:
问题在于我以为是因为我将其推送到git heroku导致它失败,所以另一个表单说要卸载heroku,但是那也没有起作用,我仍然会得到这个错误。
$ rails s
=> Booting Puma
=> Rails 5.0.1 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
/Users/User/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.1/lib/active_support/core_ext/numeric/conversions.rb:138: warning: constant ::Fixnum is deprecated
[27508] Puma starting in cluster mode...
[27508] * Version 3.7.0 (ruby 2.4.0-p0), codename: Snowy Sagebrush
[27508] * Min threads: 5, max threads: 5
[27508] * Environment: development
[27508] * Process workers: 2
[27508] * Preloading application
[27508] * Listening on tcp://0.0.0.0:3000
[27508] Use Ctrl-C to stop
[27508] - Worker 1 (pid: 27544) booted, phase: 0
[27508] - Worker 0 (pid: 27543) booted, phase: 0
以前,rails服务器只会停留在“使用Ctrl-C停止”,但现在它有了这些工作人员ID和其他内容。它们可能是在我安装heroku并尝试使用git heroku推送我的项目时发生的。未来参考中这些工作者意味着什么,如何再次连接到本地主机?
根据其他stackexchange建议,我已经尝试过以下方法:
- 卸载heroku
- 删除heroku应用程序(由于它们说找不到任何应用程序,即使使用整个名称也会失败)
- 在app/config/environments/production.rb内注释掉“config.force_ssl = true”行
- 删除Procfile