Address concern rBC6cbd5ca369ed
Improvements to the deployment script.
This commit is contained in:
@@ -106,21 +106,18 @@ if [ ! -e $GULP -o gulpfile.js -nt $GULP ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# List of projects
|
# List of projects
|
||||||
declare -a proj=("pillar" "attract" "flamenco" "pillar-svnman" "blender-cloud")
|
PROJECTS="pillar attract flamenco pillar-svnman blender-cloud"
|
||||||
|
|
||||||
# Run ./gulp for every project
|
# Run ./gulp for every project
|
||||||
for i in "${proj[@]}"
|
for PROJECT in $PROJECTS; do
|
||||||
do
|
pushd $STAGINGDIR/$PROJECT; ./gulp --production; popd;
|
||||||
pushd $STAGINGDIR/$i; ./gulp --production; popd;
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# Remove node_modules (only after all projects with interdependencies have been built)
|
# Remove node_modules (only after all projects with interdependencies have been built)
|
||||||
for i in "${proj[@]}"
|
for PROJECT in $PROJECTS; do
|
||||||
do
|
pushd $STAGINGDIR/$PROJECT; rm -r node_modules; popd;
|
||||||
pushd $STAGINGDIR/$i; rm -r node_modules; popd;
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "==================================================================="
|
echo "==================================================================="
|
||||||
echo "Staging of ${PROJECT_NAME} is ready for dockerisation."
|
echo "Staging of ${PROJECT_NAME} is ready for dockerisation."
|
||||||
|
Reference in New Issue
Block a user