mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-25 15:38:40 +00:00
fix: 61aebec03e
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
61aebec03e
commit
db6b0ffdb4
@ -15,7 +15,7 @@ return function (string $type) {
|
||||
$extra['social']['codeforces'] = $user['codeforces_handle'];
|
||||
$extra['social']['github'] = $user['github'];
|
||||
$extra['social']['website'] = $user['website'];
|
||||
$extra['image_hosting']['total_size_limit'] = $user['images_size_limit'];
|
||||
$extra['image_hosting']['total_size_limit'] = (int)$user['images_size_limit'];
|
||||
|
||||
DB::update([
|
||||
"update user_info",
|
||||
|
@ -66,7 +66,7 @@ setWebConf(){
|
||||
\$config['database']['host']='$_database_host_';
|
||||
\$config['database']['password']='$_database_password_';
|
||||
\$config['judger']['socket']['port']='$_judger_socket_port_';
|
||||
file_put_contents('/var/www/uoj/app/.config.php', "<?php\nreturn ".str_replace('\'_httpHost_\'','UOJContext::httpHost()',var_export(\$config, true)).";\n");
|
||||
file_put_contents('/var/www/uoj/app/.config.php', "<?php\nreturn ".str_replace('\'_httpHost_\'','UOJContext::requestDomain()',var_export(\$config, true)).";\n");
|
||||
UOJEOF
|
||||
# Prepare local sandbox
|
||||
cd /opt/uoj/judger/uoj_judger
|
||||
|
Loading…
Reference in New Issue
Block a user