Example #1
0
def create(path):
	"Creates a new project at the given path."
	
	if os.path.exists(path):
		if raw_input('Path %s exists, move aside (y/n): ' % path) == 'y':
			os.rename(path, '%s.%s.moved' % (path, int(time.time())))
		else:
			sys.exit()
	
	site = cactus.Site(path)
	site.bootstrap()
Example #2
0
def serve(path, port=8000, browser=True):
	"Serve the project and watch changes"
	
	site = cactus.Site(path)
	site.verify()
	site.serve(port=port, browser=browser)
Example #3
0
def deploy(path):
	"Upload the project to S3"
	
	site = cactus.Site(path)
	site.verify()
	site.upload()
Example #4
0
def domain_list(path, config):
    site = cactus.Site(path, config)
    site.domain_list()
Example #5
0
def build(path):
	"Build a cactus project"
	
	site = cactus.Site(path)
	site.verify()
	site.build()
Example #6
0
def domain_setup(path, config):
    site = cactus.Site(path, config)
    site.domain_setup()
Example #7
0
def serve(path, config, port, browser):
    """Serve the project and watch changes"""
    site = cactus.Site(path, config)
    site.serve(port=port, browser=browser)
Example #8
0
def make_messages(path, config):
    """ Create the list of translation files for the site """
    site = cactus.Site(path, config)
    site.make_messages()
Example #9
0
def deploy(path, config):
    """Upload the project to S3"""
    site = cactus.Site(path, config)
    site.upload()
Example #10
0
def build(path, config):
    """Build a cactus project"""

    site = cactus.Site(path, config)
    site.build()