Doesn't seem like cache dir is available during deploy, so restore node to build dir
This commit is contained in:
Родитель
3a63b93ba1
Коммит
aeac342f68
|
@ -34,6 +34,9 @@ export_env_dir
|
|||
mkdir -p $SALESFORCE_DIR
|
||||
|
||||
install_nodejs $SALESFORCE_CACHE_DIR
|
||||
# Put node in build dir since the cache is not available at time of deploy
|
||||
cp -a $SALESFORCE_CACHE_DIR/node $SALESFORCE_DIR/node
|
||||
export PATH="$SALESFORCE_DIR/node/bin":$PATH
|
||||
|
||||
status "Coping deploy script to .salesforce/deploy"
|
||||
cp $BP_DIR/lib/deploy.js $SALESFORCE_DIR/deploy.js
|
||||
|
|
|
@ -31,8 +31,6 @@ install_nodejs() {
|
|||
local version=5.11.1
|
||||
local version_str="v$version-$(get_os)-$(get_cpu)"
|
||||
|
||||
export PATH="$dir/bin":$PATH
|
||||
|
||||
if [ "$(create_signature)" != "$(load_signature $dir)" ]; then
|
||||
status "Downloading and installing node $version..."
|
||||
mkdir -p "$dir"
|
||||
|
|
Загрузка…
Ссылка в новой задаче