File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 88
99?>
1010#!/usr/bin/env bash
11+ shopt -s expand_aliases
1112__PROJECT_DIR__=$(cd "$(dirname "$0")"; pwd)
1213CLI_BUILD_TYPE=<?= $ this ->getBuildType () . PHP_EOL ?>
1314SRC=<?= $ this ->phpSrcDir . PHP_EOL ?>
474475 echo $LIBS
475476elif [ "$1" = "sync" ] ;then
476477 PHP_CLI=$(which php)
477- test -f ${__PROJECT_DIR__}/bin/ runtime/php && PHP_CLI="${__PROJECT_DIR__}/bin/ runtime/php -d curl.cainfo=${__PROJECT_DIR__}/bin/ runtime/cacert.pem -d openssl.cafile=${__PROJECT_DIR__}/bin/ runtime/cacert.pem"
478+ test -f ${__PROJECT_DIR__}/runtime/php/php && PHP_CLI="${__PROJECT_DIR__}/runtime/php/php -d curl.cainfo=${__PROJECT_DIR__}/runtime/php/ cacert.pem -d openssl.cafile=${__PROJECT_DIR__}/runtime/php /cacert.pem"
478479 $PHP_CLI -v
479480 $PHP_CLI sync-source-code.php --action run
480481 exit 0
Original file line number Diff line number Diff line change @@ -237,6 +237,8 @@ echo " USE PHP-CLI RUNTIME :"
237237echo " "
238238echo " export PATH=\" ${APP_RUNTIME_DIR} :\$ PATH\" "
239239echo " "
240+ echo " shopt -s expand_aliases "
241+ echo " "
240242echo " alias swoole-cli='swoole-cli -d curl.cainfo=${APP_RUNTIME_DIR} /cacert.pem -d openssl.cafile=${APP_RUNTIME_DIR} /cacert.pem' "
241243echo " OR "
242244echo " alias swoole-cli='swoole-cli -c ${APP_RUNTIME_DIR} /php.ini' "
You can’t perform that action at this time.
0 commit comments