|
|
@ -138,7 +138,7 @@ EOF |
|
|
|
sed -i '/swap/d' /etc/fstab |
|
|
|
sed -i '/swap/d' /etc/fstab |
|
|
|
|
|
|
|
|
|
|
|
# Docker |
|
|
|
# Docker |
|
|
|
curl -fsSL https://get.docker.com -o get-docker.sh && bash get-docker.sh && apt-get -y install docker-compose |
|
|
|
curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh |
|
|
|
|
|
|
|
|
|
|
|
# NodeJS |
|
|
|
# NodeJS |
|
|
|
curl -fsSL https://deb.nodesource.com/setup_20.x | bash && apt-get install -y nodejs |
|
|
|
curl -fsSL https://deb.nodesource.com/setup_20.x | bash && apt-get install -y nodejs |
|
|
@ -175,7 +175,6 @@ function checkConfig() { |
|
|
|
|
|
|
|
|
|
|
|
# Check configs in the List |
|
|
|
# Check configs in the List |
|
|
|
function checkList() { |
|
|
|
function checkList() { |
|
|
|
checkConfig docker-compose |
|
|
|
|
|
|
|
checkConfig docker |
|
|
|
checkConfig docker |
|
|
|
checkConfig node |
|
|
|
checkConfig node |
|
|
|
checkConfig git |
|
|
|
checkConfig git |
|
|
@ -276,8 +275,7 @@ function deployPlatform() { |
|
|
|
cd /root/$serverFQDN |
|
|
|
cd /root/$serverFQDN |
|
|
|
# Generate platform environment file automatically |
|
|
|
# Generate platform environment file automatically |
|
|
|
./generate_env.sh --auto |
|
|
|
./generate_env.sh --auto |
|
|
|
docker-compose up --build --detach |
|
|
|
./redeploy.sh --hard |
|
|
|
./redeploy.sh --latest |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function clonePlatform() { |
|
|
|
function clonePlatform() { |
|
|
|