Ejemplo n.º 1
0
def update(install_path=None):
    if not install_path:
        install_path = paths.get_source_path(env.current_release)

    flags = default_flags

    if "composer_flags" in env:
        flags = env.composer_flags

    with(env.cd(install_path)):
        env.run("php composer.phar install {}".format(" ".join(flags)))
Ejemplo n.º 2
0
Archivo: node.py Proyecto: Frojd/Fabrik
def deploy():
    envfile.symlink_env()

    with(env.cd(paths.get_source_path(env.current_release))):
        npm.install()
Ejemplo n.º 3
0
def deploy():
    paths.symlink(
        paths.get_shared_path("wp-config.php"),
        os.path.join(paths.get_source_path(env.current_release),
                     "wp-config.php")
    )
Ejemplo n.º 4
0
def _collectstatic():
    with (env.cd(paths.get_source_path(env.current_release))):
        env.run("python manage.py collectstatic --noinput", warn_only=True)
Ejemplo n.º 5
0
def _migrate():
    with (env.cd(paths.get_source_path(env.current_release))):
        env.run("python manage.py migrate --noinput")
Ejemplo n.º 6
0
def _collectstatic():
    with(env.cd(paths.get_source_path(env.current_release))):
        env.run("python manage.py collectstatic --noinput", warn_only=True)
Ejemplo n.º 7
0
def _migrate():
    with(env.cd(paths.get_source_path(env.current_release))):
        env.run("python manage.py migrate --noinput")
Ejemplo n.º 8
0
def install(install_path=None):
    if not install_path:
        install_path = paths.get_source_path(env.current_release)

    with(env.cd(install_path)):
        env.run("curl -sS https://getcomposer.org/installer | php")
Ejemplo n.º 9
0
Archivo: node.py Proyecto: Frojd/Fabrik
def deploy():
    envfile.symlink_env()

    with (env.cd(paths.get_source_path(env.current_release))):
        npm.install()
Ejemplo n.º 10
0
def symlink_env():
    paths.symlink(
        paths.get_shared_path(".env"),
        os.path.join(paths.get_source_path(env.current_release), ".env")
    )