Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 773 Bytes

README-dev.md

File metadata and controls

34 lines (23 loc) · 773 Bytes

How to build

  1. $GOROOT and $GOPATH should be set before the build.

  2. Clone dapp source code to the right place in $GOPATH:

    mkdir -p $GOPATH/src/github.com/flant
    git clone https://github.com/flant/dapp.git $GOPATH/src/github.com/flant/dapp
    cd $GOPATH/src/github.com/flant/dapp
    
  3. Setup development environment variables:

    source ./go-env
    

    This will make ruby-dapp work properly with the newly built dappfile-yml.

  4. Download go dependencies:

    ./go-get.sh
    
  5. Run build:

    ./go-build.sh
    

The dappfile-yml binary will be placed into your $GOPATH/bin. To call it you can use $DAPP_BIN_DAPPFILE_YML (used by ruby-dapp internally) or simply dappfile-yml.