magento2 deploy script code example
Example: magento2 deploy script
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento indexer:reindex
php bin/magento cache:flush
#or as a single command:
php bin/magento setup:upgrade;php bin/magento setup:di:compile;php bin/magento setup:static-content:deploy;php bin/magento indexer:reindex;php bin/magento cache:flush;