Rails Update to 3.2.11 breaks running multiple servers

前端 未结 3 721
醉梦人生
醉梦人生 2020-12-06 01:20

Our application runs two Rails servers at different ports that talk to each other. Using Rails 3.2.8, I could open a terminal, cd to the project, run rail

相关标签:
3条回答
  • 2020-12-06 01:49

    try using foreman https://github.com/ddollar/foreman

    Railscast: http://railscasts.com/episodes/281-foreman?view=comments

    0 讨论(0)
  • 2020-12-06 02:12

    Posted elsewhere on Stackoverflow was the mention that if you have problems with rails 3.2.11, try locking rack at 1.4.1. This seems to work so far. I added:

    gem 'rack' , '1.4.1'
    

    to the gemfile, and then executed

    bundle update rack
    
    0 讨论(0)
  • 2020-12-06 02:14

    Both commands are checking the default PID file location (tmp/pids/server.pid), so you're seeing this error. Try running multiple servers like so:

    Server 1: bundle exec rails s

    Server 2: bundle exec rails s -p 3001 -P tmp/pids/server2.pid

    0 讨论(0)
提交回复
热议问题