use node and npm in walnut-specific directory
This commit is contained in:
parent
0a10d0ac4f
commit
b7d86946be
|
@ -196,6 +196,9 @@ install_uninstaller()
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
export NODE_PATH=/opt/walnut/lib/node_modules
|
||||||
|
export NPM_CONFIG_PREFIX=/opt/walnut
|
||||||
|
mkdir -p $NODE_PATH
|
||||||
dap_dl_bash "https://git.daplie.com/coolaj86/node-install-script/raw/master/setup-min.sh"
|
dap_dl_bash "https://git.daplie.com/coolaj86/node-install-script/raw/master/setup-min.sh"
|
||||||
|
|
||||||
# Install
|
# Install
|
||||||
|
@ -242,7 +245,7 @@ install_my_app()
|
||||||
ln -s /srv/walnut/var/sites /srv/walnut/packages/client-api-grants
|
ln -s /srv/walnut/var/sites /srv/walnut/packages/client-api-grants
|
||||||
|
|
||||||
pushd /srv/walnut/core
|
pushd /srv/walnut/core
|
||||||
npm install
|
/opt/walnut/bin/npm install
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue