-
Notifications
You must be signed in to change notification settings - Fork 9
Update skript (fabfile)
Najskor nainstalovat fabric... potom usage:
fab kde prikaz
moznosti pre kde:
beta
, prod
, local
moznosti pre prikaz:
pull
== zavola git pull v aktualnej vetve, collectstatic
, syncdb
, migrate
, load_fixtures
, install_requirements
, restart_wsgi
, write_version_txt
, update
== spravi vsetky predosle v spravnom poradi, version
== vrati obsah suboru version.txt, enable_maintenance_mode
, disable_maintenance_mode
Na to aby vam to fungovalo na localhost-e musite mat nainstalovany virtualenvwrapper a pouzivat ho.., ak sa vas virtualenv nevola "trojstenweb", treba pustat stylom fab local:<meno_virtualenv-u> prikaz
.. Also ak vam balicek virtualenvwrapper vo vasej oblubenej distribucii nenakopiruje virtualenvwrapper.sh
do /etc/profile.d/
tak si ho tam bud nakopirujte alebo si pridajte do ~/.profile
riadok source /cesta/k/virtualenvwrapper.sh
Na to aby vam to fungovalo remote na {beta,www}.ksp.sk musite mat ssh pristup k danym server-om
Advanced features:
Freeze results: fab prod freeze_results:1,2,3
, cisla kol oddelene ciarkou
Dump SQL: fab prod dump_sql get_latest_dump
: dump sql vytvori v zlozke dbdumps databazovy dump, get_latest_dump stiahne najnovsi existujuci dump
Git branch-e: fab beta branch:meno-branche update
prepne betu na danu branch-u (use with caution)