在上一篇《简单快捷的部署方案》中已经展示了如果用 Passenger 部署一个 Rails 应用,观察评论后发现比较多的问题出在用户权限上,所以增加一篇用户权限的向导。
http://chloerei.com/2012/08/26/rails-deploy-guides-2-linux-user-rights/
大家可以推荐一些 Linux Sever 的入门书籍。
相关链接:
我想问一下,在 VPS 里,如果你的.git 是放在 git 的用户里,而 deploy 部署在 deploy 用户里,deploy 需要不需要特别给些什么权限给 git 呢?
pumactl -F /mnt/webserver/www/shared/config/puma.rb start
[30923] Puma starting in cluster mode...
[30923] * Version 2.15.3 (ruby 2.2.1-p85), codename: Autumn Arbor Airbrush
[30923] * Min threads: 0, max threads: 16
[30923] * Environment: development
[30923] * Process workers: 2
[30923] * Preloading application
Could not find minitest-5.8.0 in any of the sources
Run bundle install
to install missing gems.
[30923] ! Unable to load application: SystemExit: exit
[owhat@owhat-test current]$ gem install minitest
Successfully installed minitest-5.8.3
Parsing documentation for minitest-5.8.3
Done installing documentation for minitest after 0 seconds
1 gem installed
pumactl -F /mnt/webserver/www/owhat-web/shared/config/puma.rb start
[30928] Puma starting in cluster mode...
[30928] * Version 2.15.3 (ruby 2.2.1-p85), codename: Autumn Arbor Airbrush
[30928] * Min threads: 0, max threads: 16
[30928] * Environment: development
[30928] * Process workers: 2
[30928] * Preloading application
Could not find minitest-5.8.0 in any of the sources
Run bundle install
to install missing gems.
[30928] ! Unable to load application: SystemExit: exit