运行bundle命令时,是否可以让Capistrano
打印 bundle 程序的输出?
在本地计算机上,它通常会打印“using rails 4.2.1”等。我希望在部署到实时服务器上时使用相同的内容。
最佳答案
这是因为Capistrano默认情况下将Bundler与--deployment --quiet
选项一起使用。因此,--quiet
抑制了所需的输出。
将以下行添加到Capistrano的生产配置中:
set :bundle_flags, '--deployment'
您可以找到有关Capistranos Bundler plugin from its repository的更多信息。
关于ruby-on-rails - Capistrano Bundler : How to make it verbose?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33414502/