added some debug info to deploy.sh and fixed directory creation/copying bug
This commit is contained in:
parent
002062ba57
commit
11f098d18e
1 changed files with 10 additions and 3 deletions
13
deploy.sh
13
deploy.sh
|
@ -18,8 +18,14 @@ if [[ ! -d "${destination}" ]] ; then
|
||||||
mkdir -p "${destination}" || echo "Failed to create target directory for deployment!"
|
mkdir -p "${destination}" || echo "Failed to create target directory for deployment!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Before any deletion:"
|
||||||
|
ls "${destination}"
|
||||||
rm -rf "${destination}/*"
|
rm -rf "${destination}/*"
|
||||||
|
echo "After rm -rf dest/*:"
|
||||||
|
ls "${destination}"
|
||||||
rm -rf "${destination}/.??*"
|
rm -rf "${destination}/.??*"
|
||||||
|
echo "After rm -rf dest/.??:"
|
||||||
|
ls "${destination}"
|
||||||
|
|
||||||
cp -a dencode.css index.html package.json systemjs.config.js "${destination}"
|
cp -a dencode.css index.html package.json systemjs.config.js "${destination}"
|
||||||
|
|
||||||
|
@ -27,8 +33,9 @@ mkdir -p "${destination}/app"
|
||||||
cp -a app/*.css app/*.html app/*.js app/*.js.map "${destination}/app"
|
cp -a app/*.css app/*.html app/*.js app/*.js.map "${destination}/app"
|
||||||
|
|
||||||
mkdir -p "${destination}/node_modules/core-js/client" "${destination}node_modules/zone.js/dist" "${destination}/node_modules/reflect-metadata" "${destination}/node_modules/systemjs/dist"
|
mkdir -p "${destination}/node_modules/core-js/client" "${destination}node_modules/zone.js/dist" "${destination}/node_modules/reflect-metadata" "${destination}/node_modules/systemjs/dist"
|
||||||
cp -a node_modules/core-js/client/shim.js "${destination}/node_modules/zone.js/dist"
|
cp -a node_modules/core-js/client/shim.js "${destination}/node_modules/core-js/client/"
|
||||||
cp -a node_modules/reflect-metadata/Reflect.js "${destination}/node_modules/reflect-metadata"
|
cp -a node_modules/zone.js/dist/zone.js "${destination}/node_modules/zone.js/dist/"
|
||||||
cp -a node_modules/systemjs/dist/system.src.js "${destination}/node_modules/systemjs/dist"
|
cp -a node_modules/reflect-metadata/Reflect.js "${destination}/node_modules/reflect-metadata/"
|
||||||
|
cp -a node_modules/systemjs/dist/system.src.js "${destination}/node_modules/systemjs/dist/"
|
||||||
|
|
||||||
echo "Deployment successful."
|
echo "Deployment successful."
|
||||||
|
|
Loading…
Reference in a new issue