Changing site to production mode display below error on command terminal in (red color):
Enabled maintenance mode Starting compilation Compilation was started. ..... ..... Generated code and dependency injection configuration successfully. Compilation complete Starting deployment of static content Something went wrong while deploying static content. See the error log for details. Command returned non-zero exit code: `/opt/nexcess/php70u/root/usr/bin/php -f /chroot/home/siteRoot/html/bin/magento setup:static-content:deploy en_GB en_US`
if i execute command with skip compilation:
php bin/magento deploy:mode:set production -s. It works but site display messed as css and js donest load.
Site is working well in developer mode but only issues with production mode.
Update: I figure out the problem. less files of font awesome was creating issues to change site to production mode.
Now CSS and JS is not loading in Production mode though Mode can be changed easily.
What can be reason of this?