修复非80端口问题;在.config.php中自定义网站;docker build镜像名设为uoj

This commit is contained in:
ruanxingzhi 2017-04-07 17:02:34 +08:00
parent eb0500bbfa
commit 85de04ff6c
3 changed files with 11 additions and 1 deletions

View File

@ -21,6 +21,14 @@ $svn_pwd = rand_str(32);
$svn_cert = '--username root --password '.$svn_pwd; $svn_cert = '--username root --password '.$svn_pwd;
$config = [ $config = [
'profile' => [
'oj-name' => 'Universal Online Judge',
'oj-name-short' => 'UOJ',
'administrator' => 'admin',
'admin-email' => 'admin@uoj',
'qq-group' => '',
'ICP-license' => ''
],
'database' => [ 'database' => [
'database' => 'app_uoj233', 'database' => 'app_uoj233',
'username' => 'root', 'username' => 'root',

2
install Normal file → Executable file
View File

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
docker build -f docker/Dockerfile --no-cache=true . docker build -f docker/Dockerfile --no-cache=true . -t uoj

View File

@ -1,5 +1,7 @@
<?php <?php
Session_Start();
require $_SERVER['DOCUMENT_ROOT'] . '/app/uoj-lib.php'; require $_SERVER['DOCUMENT_ROOT'] . '/app/uoj-lib.php';
require UOJContext::documentRoot().'/app/route.php'; require UOJContext::documentRoot().'/app/route.php';