so I am running a magento 2.2.4 in development and one in production, the dev is ok and I can do all, the production is an exact copy of it on apache 2.4 and Ubuntu 16.04, every time I use any kind of cli command (grunt, setup, whatever ) to regenerate the static file I got a blank page and to put all in place again I have to run chown -R www-data:www-data /.
I am sure the cli user belongs to the www.data group