I corrected the file permissions using this command (find . -type d -exec chmod 770 {} ; && find . -type f -exec chmod 660 {} ; && chmod u+x bin/magento), and after that pub folder is showing when I visit my website. Please see the screenshot for a better understanding.
