mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-25 01:25:34 +08:00
add $ZM_CUSTOM_PHP_PATH env support
This commit is contained in:
@@ -5,7 +5,10 @@
|
|||||||
# author: crazywhalecc
|
# author: crazywhalecc
|
||||||
# since: 2.5.0
|
# since: 2.5.0
|
||||||
|
|
||||||
if [ -f "$(pwd)/runtime/php" ]; then
|
if [ "$ZM_CUSTOM_PHP_PATH" != "" ]; then
|
||||||
|
echo "* Using PHP executable: ""$ZM_CUSTOM_PHP_PATH"
|
||||||
|
executable="$ZM_CUSTOM_PHP_PATH"
|
||||||
|
elif [ -f "$(pwd)/runtime/php" ]; then
|
||||||
executable="$(pwd)/runtime/php"
|
executable="$(pwd)/runtime/php"
|
||||||
echo "* Framework started with built-in php."
|
echo "* Framework started with built-in php."
|
||||||
else
|
else
|
||||||
|
|||||||
6
zhamao
6
zhamao
@@ -5,8 +5,10 @@
|
|||||||
# author: crazywhalecc
|
# author: crazywhalecc
|
||||||
# since: 2.5.0
|
# since: 2.5.0
|
||||||
|
|
||||||
|
if [ "$ZM_CUSTOM_PHP_PATH" != "" ]; then
|
||||||
if [ -f "$(pwd)/runtime/php" ]; then
|
echo "* Using PHP executable: ""$ZM_CUSTOM_PHP_PATH"
|
||||||
|
executable="$ZM_CUSTOM_PHP_PATH"
|
||||||
|
elif [ -f "$(pwd)/runtime/php" ]; then
|
||||||
executable="$(pwd)/runtime/php"
|
executable="$(pwd)/runtime/php"
|
||||||
echo "* Framework started with built-in php."
|
echo "* Framework started with built-in php."
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user