def django_deploy(release=None, skip_tests=True): """Deploy a Django project according to the methodology defined in the README. Beyond the default_deploy(), this also updates and migrates the database, loads extra database fixtures, installs an optional crontab as well as celeryd. """ require('hosts') require('path') require('unit') require('migrate') require('root_dir') env.test_runner = testing.django_test_runner utils.store_deployed_version() deployed, hard_reset = _git_deploy(release, skip_tests) #db.sync_all_migrate_fake(deployed) db.update_db(deployed) db.migrate(deployed) db.load_data() deploy.release.conditional_symlink_current_release(deployed) celery.update_and_restart_celery() tasks.restart_webserver(hard_reset) #notify.hoptoad_deploy(deployed) #notify.campfire_notify(deployed) print(green("%(pretty_release)s is now deployed to %(deployment_type)s" % env))
def django_deploy(release=None, skip_tests=None): """Deploy a Django project according to the methodology defined in the README. Beyond the default_deploy(), this also updates and migrates the database, loads extra database fixtures, installs an optional crontab as well as celeryd. """ require('hosts') require('path') require('unit') require('migrate') require('root_dir') env.test_runner = testing.django_test_runner utils.store_deployed_version() deployed, hard_reset = _git_deploy(release, skip_tests) db.update_db(deployed) db.migrate(deployed) db.load_data() deploy.release.conditional_symlink_current_release(deployed) celery.update_and_restart_celery() tasks.restart_webserver(hard_reset) notify.hoptoad_deploy(deployed) notify.campfire_notify(deployed) print( green("%(pretty_release)s is now deployed to %(deployment_type)s" % env))
def default_deploy(release=None, skip_tests=None): """Deploy a project according to the methodology defined in the README.""" require('hosts') require('path') require('unit') env.test_runner = testing.webpy_test_runner utils.store_deployed_version() deployed, hard_reset = _git_deploy(release, skip_tests) deploy.release.conditional_symlink_current_release(deployed) tasks.restart_webserver(hard_reset) with settings(warn_only=True): notify.hoptoad_deploy(deployed) notify.campfire_notify(deployed)