2024-02-28 11:02:39 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# 拉取最新的代码
|
2024-03-28 13:24:46 +08:00
|
|
|
git config core.fileMode false
|
|
|
|
|
2024-03-04 10:01:05 +08:00
|
|
|
echo "Pulling latest code..."
|
2024-02-28 11:02:39 +08:00
|
|
|
git pull
|
|
|
|
|
2024-03-04 10:01:05 +08:00
|
|
|
echo "Building and starting docker services..."
|
2024-04-11 08:55:27 +08:00
|
|
|
docker-compose --env-file .env --env-file .env.production up -d --build
|
2024-03-04 10:01:05 +08:00
|
|
|
|
|
|
|
echo "build succeeds."
|