Giter Club home page Giter Club logo

festi's Introduction

Festi

개발 환경 설정.

개발 환경은 Vagrant를 사용하여 구성합니다.

vagrant up

잠시 기다리면 개발환경이 구성됩니다. 위의 커맨드는 이제 입력하실 필요가 없습니다.

개발 환경을 동작시키기 위해서는 다음의 커맨드를 입력합니다.

vagrant ssh
server

쉘에 접속하여 server를 수행하면 웹 서버가 동작합니다.

호스트 웹 브라우저에서 http://localhost:8000해보세요.

셀러리를 수행해야 하는 경우에는 celery를 커맨드라인에 입력합니다.

Vagrant 환경 갱신

개발 상황에 따라 Vagrant 환경이 갱신되는 경우가 있습니다. 이럴 경우 vagrant ssh로 접근하기 전에 아래의 커맨드를 입력하세요.

vagrant reload --provision

Docker 설정

개발 과정에서 Docker registry를 사용할 경우 상황에 따라 보안되지 않는 레지스트리로 등록해야할 수 있습니다. 그럴 경우 아래의 방법을 따라하세요.

Ubuntu

ubuntu /etc/default/docker 파일을 열어 아래와 같이 추가합니다.

DOCKER_OPTS="$DOCKER_OPTS --insecure-registry <registry 주소>"

쉘에서 다음 커맨드를 입력합니다.

sudo service docker restart

Mac

boot2docker ssh로 쉘에 접속하여 /var/lib/boot2docker/profile 파일을 만들어 아래의 내용을 넣습니다.`

EXTRA_ARGS="--insecure-registry <registry 주소>"

sudo /etc/init.d/docker restart을 쉘에 입력하여 갱신합니다.

celery

broker 로 redis-server 사용

python manage.py celery worker --events &
python manage.py celery events

backend/settings_local.py example

SECRET_KEY = 'qRg\x0bw,^oXr)(MZ3|~!\\bT~o\\cGb\\J*R~XJ`r-Uc*bE9~,rBlk1'
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'password'

festi's People

Contributors

allieus avatar corikachu avatar dalinaum avatar

Watchers

 avatar  avatar

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.