diff --git a/lib/api/source/deploy.php b/lib/api/source/deploy.php index 02b9904..a57d7a6 100755 --- a/lib/api/source/deploy.php +++ b/lib/api/source/deploy.php @@ -111,16 +111,22 @@ /* [5] Launch deploy script for each feature =========================================================*/ + slog('Deploying each feature', "api:deploy", 'update'); + /* (1) For each feature */ foreach($feature as $feat_name){ /* (2) Check if specific data in response */ - if( !isset($arr_r['feature'][$feat_name]) ) + if( !isset($arr_r['feature'][$feat_name]) ){ + slog("No data found for $eat_name", "api:deploy", 'update'); continue; + } /* (3) Check for feature deploy script */ - if( !file_exists(SOURCE_DIR."/feature/$feat_name/deploy") ) + if( !file_exists(SOURCE_DIR."/feature/$feat_name/deploy") ){ + slog("No deploy script found for $eat_name", "api:deploy", 'update'); continue; + } /* (4) Write useful exclusive data to tmp file */ file_put_contents(TMP_DIR."/$feat_name", json_encode($arr_r['feature'][$feat_name]));