大米CMS官网论坛,大米站长联盟,大米站长之家,大米开发者社区
标题:
magento2发布linu简单脚本mage.sh
[打印本页]
作者:
追影
时间:
2018-7-13 14:49
标题:
magento2发布linu简单脚本mage.sh
#!/bin/bash
action=$1
root_path=/www/wwwroot/cn-pricerite-magento2
if [ "${action}" == "clean" ];then
rm -rf ${root_path}/pub/static/frontend
rm -rf ${root_path}/var/view_preprocessed/pub/static/frontend
php ${root_path}/bin/magento cache:clean
elif [ "${action}" == "upgrade" ];then
php ${root_path}/bin/magento setup:upgrade
elif [ "${action}" == "compile" ];then
php /home/website/magentoee220/bin/magento setup:di:compile
elif [ "${action}" == "deploy" ];then
php ${root_path}/bin/magento setup:static-content:deploy -f en_US
php ${root_path}/bin/magento setup:static-content:deploy -f zh_Hant_HK
elif [ "${action}" == "chown" ];then
chown -R www:www ${root_path}
elif [ "${action}" == "chmod" ];then
chmod -R 777 ${root_path}
else
php ${root_path}/bin/magento ${action}
fi
复制代码
欢迎光临 大米CMS官网论坛,大米站长联盟,大米站长之家,大米开发者社区 (https://www.damicms.com/bbs/)
Powered by Discuz! X3.1