Beispiel #1
0
    def __deploy():
        print "Deploying your application"
        print "----------------------------"

        print "Migrations..."

        for app in enumerate_apps():
            local_migrate(app)

        if is_git_clean():
            print "Pushing code on Heroku"
            local("git push heroku master")
        else:
            print "Committing migrations..."
            local("git add .")
            local("git commit -a -m '[DHB] data migrations'")

        print "Sync remote database"
        remote_syncdb()

        for app in ["djcelery"]:
            with settings(warn_only=True):
                print "Migrating %s ..." % app
                local(
                    "heroku run python manage.py migrate %s --settings=settings.prod"
                    % (app))

        for app in enumerate_apps():
            remote_migrate(app)

        print "Transferring static files to S3"
        collectstatic()
Beispiel #2
0
    def __testing():
        print "Deploying your application to testing server"
        print "----------------------------"

        print "Migrations..."

        for app in enumerate_apps():
            local_migrate(app)

        if is_git_clean():
            print "Pushing code on Heroku test server"
            local("git push testing develop:master")
        else:
            print "Committing migrations..."
            local("git add .")
            local("git commit -a -m '[DHB] data migrations'")

        print "Sync remote database"
        testing_syncdb("nns-test-server")

        for app in ["djcelery"]:
            with settings(warn_only=True):
                print "Migrating %s ..." % app
                local(
                    "heroku run python manage.py schemamigration %s --auto --settings=settings.prod"
                    % (app))
                local(
                    "heroku run python manage.py migrate %s --settings=settings.prod"
                    % (app))

        for app in enumerate_apps():
            testing_migrate(app)

        print "Transferring static files to S3"
        collectstatic()
Beispiel #3
0
    def __run():
                
        for app in enumerate_apps():
            with settings(warn_only=True):
                local_migrate(app)

        start_foreman()     
Beispiel #4
0
    def __deploy():
        print "Deploying your application"
        print "----------------------------"

        print "Migrations..."

        for app in enumerate_apps():
            local_migrate(app)
            
        if is_git_clean():
            print "Pushing code on Heroku"
            local("git push heroku master")
        else:
            print "Committing migrations..."
            #local("git add .")
            #local("git commit -a -m '[DHB] data migrations'")


        print "Sync remote database"
        remote_syncdb()



        for app in enumerate_apps():
            remote_migrate(app)
Beispiel #5
0
	def __deploy():
		print "Deploying your application"
		print "----------------------------"

		print "Migrations..."

		for app in enumerate_apps():
			local_migrate(app)
			
		if is_git_clean():
			print "Pushing code on Heroku"
			local("git push heroku master")
		else:
			print "Committing migrations..."
			local("git add .")
			local("git commit -a -m '[DHB] data migrations'")


		print "Sync remote database"
		remote_syncdb()


		for app in ["djcelery"]:
			with settings(warn_only=True):
				print "Migrating %s ..." % app
				local("heroku run python manage.py migrate %s --settings=settings.prod" % (app))

		for app in enumerate_apps():
			remote_migrate(app)

		print "Transferring static files to S3"
		collectstatic()	
Beispiel #6
0
	def __testing():
		print "Deploying your application to testing server"
		print "----------------------------"

		print "Migrations..."

		for app in enumerate_apps(): 
			local_migrate(app)
			
		if is_git_clean():
			print "Pushing code on Heroku test server"
			local("git push testing develop:master")
		else:
			print "Committing migrations..."
			local("git add .")
			local("git commit -a -m '[DHB] data migrations'")


		print "Sync remote database"
		testing_syncdb("nns-test-server")


		for app in ["djcelery"]:
			with settings(warn_only=True):
				print "Migrating %s ..." % app
				local("heroku run python manage.py schemamigration %s --auto --settings=settings.prod" % (app))
				local("heroku run python manage.py migrate %s --settings=settings.prod" % (app))

		for app in enumerate_apps():
			testing_migrate(app)

		print "Transferring static files to S3"
		collectstatic()	
Beispiel #7
0
	def __run():
		for app in ["djcelery"]:
			with settings(warn_only=True):
				print "Migrating %s ..." % app
				local("python manage.py migrate %s --settings=settings.dev" % (app))
				
		for app in enumerate_apps():
			with settings(warn_only=True):
				local_migrate(app)

		start_foreman()