Magento 2
##General## Installing Magento 2
php /bin/magento setup:install \
--db-host=db \
--db-name=magento \
--db-user=magento \
--db-password=magento \
--base-url=http://local.{CLIENT}:8080/ \
--admin-firstname=Admin \
--admin-lastname=User \
--admin-email=dev@advantec-internet.co.uk \
--admin-user=advantec \
--admin-password=admin123 \
--language=en_GB \
--currency=GBP \
--timezone=Europe/London \
--backend-frontname=admin_123
Switch mode
php bin/magento deploy:mode:set production
View status of indexer
php bin/magento indexer:status
Reindex
php bin/magento indexer:reindex
Deploy
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento setup:static-content:deploy en_GB
If there are issues with template updates not showing, then you may need to try the following (or add to a deploy.sh script):
#!/bin/bash
export HTTPS="on"
rm -rf var/di/*
rm -rf var/*cache/*
rm -rf var/generation/*
rm -rf var/view_preprocessed/*
rm -rf pub/static/_requirejs/*
rm -rf pub/static/adminhtml/*
rm -rf pub/static/frontend/*
php bin/magento setup:di:compile
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy en_GB en_US
##Advantec## Deploy SASS
php bin/magento sass:deploy Advantec_vero