我怎么能设置'漂亮'的Capistrano部署?

时间:2020-12-02 07:23:25

How could I setup a nice indice on cap:deploy?

我怎样才能在上限设置一个很好的指标:部署?

I want the remote server to nice the cp commands like so:

我希望远程服务器能够像这样使用cp命令:

nice -n 19 cp ...

1 个解决方案

#1


0  

Not sure about cp. Don't you use an SCM?

关于cp不确定。你不使用SCM吗?

I tried with my setup (I use subversion) and this seems to work. In deploy.rb, add:

我尝试了我的设置(我使用颠覆),这似乎工作。在deploy.rb中,添加:

set :scm_command, "nice -19 svn"

It seems somewhat more difficult if you don't use an SCM, you'll have to overload checkout() in deploy/scm/none.rb.

如果你不使用SCM似乎有点困难,你必须在deploy / scm / none.rb中重载checkout()。

#1


0  

Not sure about cp. Don't you use an SCM?

关于cp不确定。你不使用SCM吗?

I tried with my setup (I use subversion) and this seems to work. In deploy.rb, add:

我尝试了我的设置(我使用颠覆),这似乎工作。在deploy.rb中,添加:

set :scm_command, "nice -19 svn"

It seems somewhat more difficult if you don't use an SCM, you'll have to overload checkout() in deploy/scm/none.rb.

如果你不使用SCM似乎有点困难,你必须在deploy / scm / none.rb中重载checkout()。