下面我们来看一篇小编总结的linux中ruby2.1+ redmine2.5+nginx 配置,如果有需要了解的朋友不防进入参考,配置过程复杂但文章思路浅析了.
在同一台服务器上装了redmine和gitlab 配置redmine + nginx的时候各种折腾.
启动方法1:ruby script/rails server mongrel -e production -d -p3000 稍微强点 不过人民大众还是说慢.
启动方法2:ruby script/rails server webrick -e production -d 默认的测试程序配置好了没的方法,人多了就不行了.
1:用unicorn + nginx
参考:http://blog.davidanguita.name/2013/03/03/setting-up-a-cheap-redmine-server-using-unicorn-and-apache/ 或者类似和国内BLOG 启动的时候失败
命令:unicorn_rails -c shared/config/redmine/unicorn.rb -p 5000 -E production -D
出现的错误:runtime.rb:34:in `block in setup':You have already activated rack 1.5.2,but your Gemfile requires rack 1.4.5.Prepending `bundle exec` to your command may solve this.Gem::LoadError/
也是各种搜索没解决,因为GITLAB和这个在同一台服务器,有几篇文章让卸载1.5.2的没敢动,搜索到下面这篇折腾了下成功了.
参考:http://qiita.com/issobero/items/4ca5bb5f8508c25c8d45
使用命令:bundle exec unicorn_rails -E production -c config/unicorn.rb -D
不懂RUBY就仅仅记录了 方便遇到问题的同学参考,ps 到了这里配置就介绍完了,文章有两个国外地址小编就整理过来,大家可以进入到地址去看看.