How to run magento 2 in production mode using ssh with baler and terser?

bin/magento s:up

bin/magento de:mo:se production

baler/bin/baler

THEME_FOLDER=('pub/static/frontend/Smartwave/porto_child/ pub/static/frontend/Smartwave/porto/')

find ${THEME_FOLDER[@]} \( -name '*.js' -not -name '*.min.js' -not -name 'core-bundle.js' -not -name 'requirejs-bundle-config.js' \) -exec terser/bin/terser \{} -c -m reserved=['$','jQuery','define','require','exports'] -o \{} \;

redis-cli flushall                                                                         

bin/magento c:c

bin/magento c:f

Article Details

Article ID:
36
Category:
Date added:
12.06.2020 17:13:53
Views:
276
Rating (Votes):
(0)

Related articles