Created
September 13, 2012 08:57
-
-
Save CBoJI/3713044 to your computer and use it in GitHub Desktop.
создать проект из шаблона
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(virtual_env)alex@alex:~/xpage_projects$ django-admin.py startproject drobservis_new --template=xpager-template | |
#env | |
(virtual_env)alex@alex:~$ pip install --requirement xpage_projects/pqgroup/pqgroup/requirements.txt (установить зависимости) | |
(virtual_env)alex@alex:~$ pip install -U --requirement xpage_projects/pqgroup/pqgroup/requirements.txt(обновить зависимости) | |
#end_env | |
#обновить шаблон | |
(virtual_env)alex@alex:~/xpage_projects/xpager-template$ hg pull | |
(virtual_env)alex@alex:~/xpage_projects/xpager-template$ hg update stable | |
(тоже самое сделать с /deploy ) | |
#шаблон | |
#bitbucket | |
vcs-> enable vci (mercurial) | |
vcs-> import into vcs -> share project (если первый раз создаем) | |
#end_bitbucket | |
python manage.py dumpdata common --natural --indent=4 > common.json | |
python manage.py loaddata pages.json | |
(virtual_env)alex@alex:~/xpage_projects/deploy$ fab create_project:name=intar,password=ZVR9EQeU4YtXh5h,new=True -H root@beta | |
# создает новый проект intar на сервере (бета) с бд интар и паролем | |
(virtual_env)alex@alex:~/xpage_projects/deploy$ fab dump_project:name=intar -H root@zeta | |
(дамп бд) | |
#применить дамп | |
(env)localhost drobservis_new # gunzip -c dumps/drobservis_dump_21_9_2012.gz | psql drobservis_new -U postgres | |
syncdb | |
migrate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment