cloudtunes-webapp/fabfile.py
def deploy():
    """Deploy code and schema changes to production"""

    local('git diff --exit-code')  # Must be clean.

    last_commit_message = local('git log --format=%B -n 1', capture=True)

    if last_commit_message != BUILD_COMMIT_MESSAGE:

        build()
        print(colors.cyan('Committing...', bold=True))
        # Can exit 1 with no diff; it's ok
        os.system('git add . && git commit -am "%s"' % BUILD_COMMIT_MESSAGE)
        print(colors.cyan('Pushing...', bold=True))

        local('git push')

    print(colors.cyan('Deploying...', bold=True))
    with cd(CODE_ROOT):
        run('git pull')
Deploy code and schema changes to production
Deploy code and schema changes to production
Deploy code and schema changes to production
def deploy():
    local('git diff --exit-code')  
    last_commit_message = local('git log --format=%B -n 1', capture=True)
    if last_commit_message != BUILD_COMMIT_MESSAGE:
        build()
        print(colors.cyan('Committing...', bold=True))
        os.system('git add . && git commit -am "%s"' % BUILD_COMMIT_MESSAGE)
        print(colors.cyan('Pushing...', bold=True))
        local('git push')
    print(colors.cyan('Deploying...', bold=True))
    with cd(CODE_ROOT):
        run('git pull')
def deploy ( ) : local ( 'git diff --exit-code' ) last_commit_message = local ( 'git log --format=%B -n 1' , capture = True ) if last_commit_message != BUILD_COMMIT_MESSAGE : build ( ) print ( colors . cyan ( 'Committing...' , bold = True ) ) os . system ( 'git add . && git commit -am "%s"' % BUILD_COMMIT_MESSAGE ) print ( colors . cyan ( 'Pushing...' , bold = True ) ) local ( 'git push' ) print ( colors . cyan ( 'Deploying...' , bold = True ) ) with cd ( CODE_ROOT ) : run ( 'git pull' )
Deploy code and schema changes to production
Deploy code and schema changes to production
"""Deploy code and schema changes to production""" # Must be clean. # Can exit 1 with no diff; it's ok