【问题标题】:Relocate Rails /tmp/pids/server.pid file to system /tmp/pids/将 Rails /tmp/pids/server.pid 文件重定位到系统 /tmp/pids/
【发布时间】:2014-02-20 23:53:29
【问题描述】:

是否有适当的方法将服务器 pid 从 ~/[RAILS APP]/tmp/pids 重新定位到系统 /tmp/pids 文件夹?原因是通过一个简单的函数来创建停止和重新启动 rails 服务器的函数。还是有其他更可取的方法?

【问题讨论】:

    标签: ruby-on-rails


    【解决方案1】:

    尝试使用以下命令启动服务器:

    bundle exec rails s -p 3000 -P [NOT RAILS]/tmp/pids/server.pid

    信用:Rails Update to 3.2.11 breaks running multiple servers

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-06-06
      • 2019-03-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-11-07
      相关资源
      最近更新 更多