mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
添加linux环境初始化脚本并迁移脚本至bin目录
This commit is contained in:
parent
5965240159
commit
4c40fdfccc
2
bin/.htaccess
Normal file
2
bin/.htaccess
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
order allow,deny
|
||||||
|
deny from all
|
37
bin/build.sh
Normal file
37
bin/build.sh
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
|
||||||
|
LANG=en_US.UTF-8
|
||||||
|
|
||||||
|
export PATH
|
||||||
|
|
||||||
|
echo "
|
||||||
|
+----------------------------------------------------------------------
|
||||||
|
| ThinkAdmin environmental preparation tools
|
||||||
|
+----------------------------------------------------------------------
|
||||||
|
| GtiHub : https://github.com/zoujingli/ThinkAdmin
|
||||||
|
+----------------------------------------------------------------------
|
||||||
|
| document : https://www.kancloud.cn/zoujingli/thinkadmin/323614
|
||||||
|
+----------------------------------------------------------------------
|
||||||
|
"
|
||||||
|
|
||||||
|
hasComposer=`command -v composer`
|
||||||
|
|
||||||
|
echo -e "\033[34mConfirm the existence of the command....\033[0m"
|
||||||
|
|
||||||
|
if [ ! -f "${hasComposer}" ]; then
|
||||||
|
echo -e "\033[31mComposer Not Found! Initialization cannot continue. \033[0m"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -e "\033[34mClean up the running environment....\033[0m"
|
||||||
|
rm -rf ./vendor
|
||||||
|
rm -rf ./thinkphp
|
||||||
|
rm -rf ./composer.lock
|
||||||
|
|
||||||
|
echo -e "\033[34mComposer install....\033[0m"
|
||||||
|
composer install --profile --prefer-dist --optimize-autoloader
|
||||||
|
|
||||||
|
echo -e "\033[34mMake Autoload....\033[0m"
|
||||||
|
composer dump-autoload --optimize
|
||||||
|
|
||||||
|
echo -e "\033[31mEnvironmental preparation success!\033[0m"
|
Loading…
x
Reference in New Issue
Block a user