Skip to content

Instantly share code, notes, and snippets.

@nhuzaa
Last active June 13, 2018 09:33
Show Gist options
  • Save nhuzaa/1d10e72168fe5294502e9a059550bc48 to your computer and use it in GitHub Desktop.
Save nhuzaa/1d10e72168fe5294502e9a059550bc48 to your computer and use it in GitHub Desktop.
Fabdeploy

Fabdeploy

N|Solid

CLI deployment tool built on top of fabric

Installing

    pip install -r requirement-fabric.txt

Getting Started

  1. Copy fabric-config.example.yaml and rename it ot fabric-config.yml
        cp fabric-config-example.yml fabric-config.yml
    
  • Add the host the appropiate configuration

        outdev:
            name: 'outdev-combo01'                                          # SSH hostname
            user: 'USERNAME'                                                # SSH username
            api_url: 'https://outdev-kb.acustream.com/knowledgebase/api'    # URL to the api for building frontend 
            path: '/usr/local/kb'                                           # Path for project
            log_path: '/var/log/kb'                                         # Path for log
            branch: 'DEFAULT_BRANCH_TO_DEPLOY'                              # DEFAULT_BRANCH_TO_DEPLOY
            tomcat_user: 'tomcat'                                           # tomcat user

    You may add as many host as required

  • Test the connection

    fab server:outdev test

    This should output

    Connection on outdev-combo01: SUCCESS 
    

    Which means you have succesfully configured fabdeploy

  • To view the task list

    fab --list

    This lists out all the task you can perform

    Let try view the log from outdev

  • View log

     fab server:outdev log

    This lists out all the log file, you can type in the log filename to monitor.

Running a Task

Todos

  • Validation for config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment