コード例 #1
0
def deploy():
    composer.install()
    composer.update()

    paths.symlink(
        paths.get_shared_path(".htaccess"),
        paths.get_current_path(".htaccess")
    )

    paths.symlink(
        paths.get_shared_path("wp-config.php"),
        paths.get_current_path("wp-config.php")
    )

    paths.symlink(
        paths.get_upload_path(),
        paths.get_current_path("wp-content/uploads")
    )
コード例 #2
0
ファイル: wordpress_bedrock.py プロジェクト: Frojd/Fabrik
def after_deploy():
    paths.symlink(
        paths.get_shared_path(".htaccess"),
        paths.get_current_path(".htaccess")
    )

    paths.symlink(
        paths.get_upload_path(),
        paths.get_current_path("app/uploads")
    )
コード例 #3
0
ファイル: wordpress.py プロジェクト: Frojd/Fabrik
def after_deploy():
    paths.symlink(
        paths.get_shared_path(".htaccess"),
        paths.get_current_path(".htaccess")
    )

    paths.symlink(
        paths.get_upload_path(),
        paths.get_current_path("wp-content/uploads")
    )
コード例 #4
0
def after_deploy():
    paths.symlink(
        paths.get_upload_path(),
        paths.get_current_path("app/uploads")
    )

    paths.symlink(
        paths.get_shared_path("robots.txt"),
        paths.get_current_path("robots.txt")
    )

    env.run('rm -rf /var/run/nginx-cache/*')
    env.run('service nginx restart')
    env.run('service php7.0-fpm restart')

    env.run(
        "cd %s && "
        "wp --allow-root cache flush && "
        "wp --allow-root rewrite flush" % paths.get_current_path()
    )
コード例 #5
0
ファイル: wordpress_bedrock.py プロジェクト: Frojd/Fabrik
def setup():
    env.run("touch %s" % paths.get_shared_path(".htaccess"))
    env.run("touch %s" % paths.get_shared_path(".env"))
コード例 #6
0
ファイル: wordpress.py プロジェクト: Frojd/Fabrik
def deploy():
    paths.symlink(
        paths.get_shared_path("wp-config.php"),
        os.path.join(paths.get_source_path(env.current_release),
                     "wp-config.php")
    )
コード例 #7
0
ファイル: wordpress.py プロジェクト: Frojd/Fabrik
def setup():
    env.run("touch %s" % paths.get_shared_path("wp-config.php"))
    env.run("chmod 400 %s" % paths.get_shared_path("wp-config.php"))

    env.run("touch %s" % paths.get_shared_path(".htaccess"))
    env.run("chmod 644 %s" % paths.get_shared_path(".htaccess"))
コード例 #8
0
def setup():
    env.run("touch %s" % paths.get_shared_path(".htaccess"))
    env.run("touch %s" % paths.get_shared_path(".env"))
コード例 #9
0
def deploy():
    paths.symlink(
        paths.get_shared_path(".env"),
        paths.get_current_release_path(".env")
    )
コード例 #10
0
def setup():
    env.run("touch %s" % paths.get_shared_path(".env"))
    env.run("touch %s" % paths.get_shared_path("robots.txt"))
コード例 #11
0
def symlink_env():
    paths.symlink(
        paths.get_shared_path(".env"),
        os.path.join(paths.get_source_path(env.current_release), ".env")
    )
コード例 #12
0
def create_env():
    env.run("touch %s" % paths.get_shared_path(".env"))
    env.run("chmod 400 %s" % paths.get_shared_path(".env"))