예제 #1
0
def deploy():
    """ create database, make folders, install django, create linux user, make virtualenv. """
    # Folders are named something like www.example.com
    # or www.staging.example.com for production or staging
    folders = _get_folders()
    postactivate_file, project_settings = make_postactivate_file(env.site_url)
    _create_postgres_db(project_settings)
    _create_linux_user(project_settings["user"], LINUXGROUP)
    _folders_and_permissions(folders)
    _create_virtualenv(folders)
    _upload_postactivate(postactivate_file, folders["venv"], folders["bin"])
    _deploy_configs()
    update()
예제 #2
0
def deploy():
    """ create database, make folders, install django, create linux user, make virtualenv. """
    # Folders are named something like www.example.com
    # or www.staging.example.com for production or staging
    folders = _get_folders()
    postactivate_file, project_settings = make_postactivate_file(
        env.site_url, )
    _create_postgres_db(project_settings)
    _create_linux_user(project_settings['user'], LINUXGROUP)
    _folders_and_permissions(folders)
    _create_virtualenv(folders)
    _upload_postactivate(postactivate_file, folders['venv'], folders['bin'])
    _deploy_configs()
    update()
def make_postactivate():
    """ create postactivate file """
    postactivate_file, project_settings = make_postactivate_file(
        env.site_url, )
    return postactivate_file
예제 #4
0
def make_postactivate():
    """ create postactivate file """
    postactivate_file, project_settings = make_postactivate_file(
        env.site_url, )
    return postactivate_file