I tried to put my website into Production mode.
For this, I used the following command on SSH but it get stuck.
php bin/magento deploy:mode:set production
Please refer to the following screenshot.
Please try following command to skip compilation, so you can directly set production mode without any compilation or static content deploy.
php bin/magento deploy:mode:set production --skip-compilation