Skip to content

dandb/fabric-deployer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Fabric-Deployer

Repository for housing Dun & Bradstreet's Fabric file for PHP Deploys

Getting Started

Add dandb/fabric-deployer to your composer.json file and copy fabfile to root of project after update

Inside: [project_root]/composer.json

{
    "require": {
        "dandb/fabric-deployer": "*"
    },
    "repositories": [
        {   
            "type": "package",
            "package": {
                "name": "dandb/fabric-deployer",
                "version": "master",
                "source": {
                    "url": "git@github.com:dandb/fabric-deployer.git",
                    "type": "git",
                    "reference": "master"
                }   
            }   
        }   
    ],
    "scripts": {
        "post-update-cmd": [
            "cp vendor/dandb/fabric-deployer/src/fabfile.py fabric-lib.py"
        ]
    }
}

Generate a 'config.json' file containing the mapping of environment to URL inside your root project directory

Inside: [project_root]/fabric-config.json

{
    "env": "https://env-site.com",
    "qa": "https://qa-site.com",
    "stg": "https://stg-site.com",
    "prd": "https://site.com"
}

Add the following fabfile inside your root project directory

Inside: [project_root]/fabfile.py

from fabric-lib import *

# If your project requires modifications to the fabric file, place them here. 
# def deploy():

About

Repository for housing Dun & Bradstreet's Fabric file for PHP Deploys

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages