No description, website, or topics provided.
Python HTML CSS JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
deploy
pyconkr
registration
.bowerrc
.gitignore
LICENSE
README.md
bower.json
fabfile.py
manage.py
requirements.txt

README.md

A git repository for PyCon APAC/Korea 2016

Join the chat at https://gitter.im/pythonkr/pyconapac-2016

requirements

  • Python 2.7.9

development setting

$ git clone git@github.com:pythonkr/pyconapac-2016.git
$ cd pyconapac-2016
$ pip install -r requirements.txt
$ python manage.py compilemessages
$ python manage.py makemigrations  # flatpages
$ python manage.py migrate
$ python manage.py loaddata ./pyconkr/fixtures/flatpages.json
$ bower install
$ python manage.py runserver

deploy

서버 정보를 담고 있는 deploy/server.py 파일과 fabric이 필요합니다.

server.py 파일 예제.

# deploy/server.py

from fabric.api import env

env.pycon_user = 'username'
env.pycon_host = '123.456.789.012'
env.pycon_port = '1234'

fabric app deployment

$ fab deploy:dev
# or
$ fab deploy:www

fabric flatpages migration

$ fab flatpages_mig  # dev 의 데이터를 www로 덮어씀
# or
$ fab flatpages_mig:dev  # www 의 데이터를 dev 로 덮어씀