Wizard: save colorized output for commands in Procfile

I have a Procfile that starts the rails server and the gulp view task. Executed independently, these tasks format their output with colors. Inside Foreman, they do not.

Based on this answer , I assume that I need to pass rails s and gulp to preserve colors. Is this true, or is it possible with an argument for the master?

If this is not the case, what arguments would I switch to rails and gulp for this purpose?

+5
source share
1 answer

This is fixed for me:

 var colors = require('colors'); colors.enabled = true; // Or if you're using chalk var chalk = require('chalk'); chalk.enabled = true; 
0
source

Source: https://habr.com/ru/post/1205283/


All Articles