def deploy(): envfile.symlink_env() with prefix("source %s" % (virtualenv.get_path() + "/bin/activate")): virtualenv.update_requirements() _migrate() if "public_path" in env: paths.symlink(paths.get_current_path(), env.public_path)
def deploy(): envfile.symlink_env() with prefix("source %s" % (virtualenv.get_path()+"/bin/activate")): virtualenv.update_requirements() _migrate() if "public_path" in env: paths.symlink(paths.get_current_path(), env.public_path)
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") )
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") )
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() )
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") )
def deploy(): paths.symlink( paths.get_shared_path("wp-config.php"), os.path.join(paths.get_source_path(env.current_release), "wp-config.php") )
def deploy(): paths.symlink( paths.get_shared_path(".env"), paths.get_current_release_path(".env") )
def symlink_env(): paths.symlink( paths.get_shared_path(".env"), os.path.join(paths.get_source_path(env.current_release), ".env") )