build/build.sh
changeset 374 c622fa18eb32
parent 368 5f79f31ca9a2
child 386 c731ab9b934d
equal deleted inserted replaced
373:e952c8a31a2b 374:c622fa18eb32
    18 function install() {
    18 function install() {
    19     pushd "$DIR"
    19     pushd "$DIR"
    20 
    20 
    21     echoblue "---> preparing bo client"
    21     echoblue "---> preparing bo client"
    22     pushd ../server/bo_client
    22     pushd ../server/bo_client
    23     npm install
    23     /usr/local/bin/npm install
    24     ./node_modules/.bin/bower install
    24     ./node_modules/.bin/bower install
    25     popd
    25     popd
    26     echoblue "---> preparing bo client done"
    26     echoblue "---> preparing bo client done"
    27 
    27 
    28     echoblue "---> preparing back"
    28     echoblue "---> preparing back"
    29     pushd ../server/src
    29     pushd ../server/src
    30     php composer.phar install
    30     php composer.phar install
    31     npm install
    31     /usr/local/bin/npm install
    32     ./node_modules/.bin/bower install
    32     ./node_modules/.bin/bower install
    33     popd
    33     popd
    34     echoblue "---> preparing back done"
    34     echoblue "---> preparing back done"
    35 
    35 
    36     echoblue "---> preparing app-client"
    36     echoblue "---> preparing app-client"
    37     pushd ../cms/app-client
    37     pushd ../cms/app-client
    38     npm install
    38     /usr/local/bin/npm install
    39     ./node_modules/.bin/bower install
    39     ./node_modules/.bin/bower install
    40     popd
    40     popd
    41     echoblue "---> preparing app-client done"
    41     echoblue "---> preparing app-client done"
    42 
    42 
    43     echoblue "---> preparing module"
    43     echoblue "---> preparing module"
    46 
    46 
    47 
    47 
    48     echoblue "---> checking vagrant"
    48     echoblue "---> checking vagrant"
    49     if vagrant status | grep -q "running"; then
    49     if vagrant status | grep -q "running"; then
    50         echoblue "---> starting vagrant"
    50         echoblue "---> starting vagrant"
       
    51         if [ type workon ]; then
       
    52             workon ansible
       
    53         fi
    51         vagrant up
    54         vagrant up
    52         VAGRANT_STARTED=true
    55         VAGRANT_STARTED=true
       
    56         if [ type deactivate ]; then
       
    57             deactivate
       
    58         fi
    53     fi
    59     fi
    54 
    60 
    55     echoblue "---> done"
    61     echoblue "---> done"
    56 
    62 
    57     popd
    63     popd