foreman:保留Procfile中命令的彩色输出

asf*_*ows 6 ruby-on-rails foreman

我有Procfile一个启动rails服务器和gulp监视任务.独立运行,这些任务使用颜色格式化其输出.在福尔曼内部,他们没有.

根据这个答案,我猜我需要传递参数rails s以及gulp保留颜色.这是真的,还是可能与工头争论?

如果不是,为了这个目的,我会将哪些参数传递给rails和gulp?

Hai*_*yen 0

这为我解决了这个问题:

var colors = require('colors');
colors.enabled = true;

// Or if you're using chalk
var chalk = require('chalk');
chalk.enabled = true;
Run Code Online (Sandbox Code Playgroud)