ubuntu-run.sh移入tools文件夹

This commit is contained in:
virusdefender
2016-04-13 23:55:36 +08:00
parent 66fc0eac40
commit 232c127825

8
tools/ubuntu-run.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
service docker start
service nginx start
base_path="/home/"
web_server_config="${base_path}OnlineJudge/dockerfiles/oj_web_server/"
judger_config="${base_path}OnlineJudge/dockerfiles/judger/"
cd $web_server_config && /usr/local/bin/docker-compose up -d
cd $judger_config && /usr/local/bin/docker-compose up -d