mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-11-04 14:49:58 +08:00
创建Ubuntu启动脚本
This commit is contained in:
parent
2ef935d922
commit
6bf751cba9
8
ubuntu-run.sh
Normal file
8
ubuntu-run.sh
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user