blessing-skin-server/scripts/deploy.sh
2019-07-07 15:12:51 +08:00

11 lines
296 B
Bash
Executable File

#!/bin/bash
set -e
command -v docker-compose >/dev/null 2>&1 || { echo >&2 "请先安装 docker-compose。 Please install docker-compose first."; exit 1; }
cp .env.laradock laradock/.env
if [ -f ".env" ]
then
mv .env .env.bak
fi
cp .env.laradock.example .env
docker-compose up -d nginx mariadb