同步操作将从 爱生活,爱JAVA/judeg0-api 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/bashif [[ -f /api/judge0-api.conf ]]; thenCONFIG_FILE=/api/judge0-api.confelif [[ -f /judge0-api.conf ]]; thenCONFIG_FILE=/judge0-api.conffiif [[ -v CONFIG_FILE ]]; thenset -o allexportsource $CONFIG_FILE # Source the configuration file.# Now set defaults if needed...# Rails Environmentexport RAILS_ENV=${RAILS_ENV:-production}export RAILS_MAX_THREADS=${RAILS_MAX_THREADS:-5}export MAINTENANCE_MESSAGE=${MAINTENANCE_MESSAGE:-Judge0 API is currently in maintenance.}export PORT=${PORT:-3000} # This option is not available in judge0-api.confexport RAILS_LOG_TO_STDOUT=true # This options is not available in judge0-api.conf# Authenticationexport AUTHN_HEADER=${AUTHN_HEADER:-X-Auth-Token}# Authorizationexport AUTHZ_HEADER=${AUTHZ_HEADER:-X-Auth-User}# Workersexport INTERVAL=${INTERVAL:-0.1}export COUNT=${COUNT:-1}export QUEUE=${JUDGE0_VERSION:-unknown} # This option is not available in judge0-api.conf# Databaseexport REDIS_HOST=${REDIS_HOST:-localhost}export REDIS_PORT=${REDIS_PORT:-6379}export POSTGRES_HOST=${POSTGRES_HOST:-localhost}export POSTGRES_PORT=${POSTGRES_PORT:-5432}export POSTGRES_DB=${POSTGRES_DB:-postgres}export POSTGRES_USER=${POSTGRES_USER:-postgres}# Otherexport RUBYOPT=-W:no-deprecatedexport DISABLE_DATABASE_ENVIRONMENT_CHECK=1set +o allexportfi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。