Giter Site home page Giter Site logo

jota's Introduction

dmoj_v2.1.1 스냅샷 사용법

이 스냅샷은 2021-07-06 일자 기준 dmoj의 v2.1.1 releases 버전으로 만들어졌습니다.

Jcloud 인스턴스 생성

  • dmoj_v2.1.1 스냅샷 선택
  • cse-services.flavor 선택
  • ssh 7777 포트로 접근

자세한 설치 방법은 https://jcloud-devops.github.io/user-guide.html 참고

유의 사항

가상 환경 저장 공간에 dmoj 구축에 필요한 모든 python 패키지들이 설치되어야 정상이지만, 이 스냅샷은 일부 패키지가 global 환경에 설치되어있습니다. 따라서 아래와 같이 root 권한과 가상 환경이 활성화된 상태에서 명령을 수행해야합니다.

  • root 권한 얻기

sudo -s
  • 가상환경 활성화

root@jota:/home/jota# . dmojsite/bin/activate
(dmojsite) root@jota:/home/jota#

django 설정 파일 수정

(dmojsite) root@jota:/home/jota/site/dmoj# vi local_settings.py

ALLOWD_HOST에 본인이 할당받은 외부 IP 입력

              .
              .
ALLOWED_HOSTS = ['IP address 입력']
              .
              .

django 서버(site) start

  • 서버를 동작하기 전에 필요한 명령 수행
(dmojsite) root@jota:/home/jota/site/dmoj# ./make_style.sh
(dmojsite) root@jota:/home/jota/site/dmoj# python3 manage.py collectstatic
(dmojsite) root@jota:/home/jota/site/dmoj# python3 manage.py compilemessages
(dmojsite) root@jota:/home/jota/site/dmoj# python3 manage.py compilejsi18n
  • 서버 start
(dmojsite) root@jota:/home/jota/site/dmoj# python3 manage.py runserver 0.0.0.0:8000 

[외부 ip 주소]:8000 url로 접근
site

초기 계정   
id : admin   
passwd : Jotajota!

site와 judge-server를 bridge로 연결

  • bridge 활성화

(dmojsite) root@jota:/home/jota/site/dmoj# python3 manage.py runbridged
  • judge-server

judge-server를 시작할 때는 root 권한을 해제하여 가상 환경만 활성화된 상태에서 진행해야합니다.

(dmojsite) ubuntu@jota:/home/jota/site/dmoj# dmoj -c judge.yml localhost

dmoj 사이트의 관리자 페이지 - 제출 - 채점기 에서 jota-judge에 초록불이 들어오면 정상 judge

참고
judge-server 경로 : /usr/lib/python3.8/site-packages/dmoj/

code-server

ubuntu@jota:/home/jota/site/dmoj# code-server

jota's People

Contributors

younghungo avatar

Watchers

 avatar

Forkers

trellixvulnteam

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.