[英]Thin doesn't start rails server
我有一個帶有rails(rvm)+ nginx + thin的ubuntu服務器。
Nginx正在收聽porst 3000-3並且如果我手動啟動rails就可以正常工作,所以我猜問題就是問題。
我已配置thin以在端口3000,3001,3002中啟動3個服務器實例,但它們無法啟動並且不會報告任何錯誤。
我只有/ etc / thin中的文件,這是正常的還是我錯過了什么? 該文件是railsapp.yml。
如果我運行bundle exec thin start,它運行正常。
編輯:運行時出錯:
thin start --all /etc/thin
這是日志中的錯誤:
/home/metaloviana/.rvm/gems/ruby-1.9.2-p318@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:31:in `block in setup': You have already activated rack 1.4.1, but your Gemfile requires rack 1.3.5. Using bundle exec may solve this. (Gem::LoadError)
編輯2:
問題解決了。 使用railsgems-bundler和rvm包裝器。
多謝你們!
同意@shime。
錯誤日志表明rubygem發現了許多不同版本的rakes,並且它不知道使用哪個版本。
請記住,始終使用“bundle exec”來執行rake任務,例如
bundle exec thin start
bundle exec rake db:migrate
bundle exec rspec spec
bundle exec rails generate scaffold...
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.