Merge pull request #629 from overleaf/msm-fix-build
Fix install-services scripts
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#! env bash
|
||||
|
||||
set -e
|
||||
|
||||
grep 'name:' config/services.js | \
|
||||
sed 's/.*name: "\(.*\)",/\1/' | \
|
||||
while read service
|
||||
do
|
||||
pushd $service
|
||||
echo "Compiling Service $service"
|
||||
case $service in
|
||||
web)
|
||||
make compile_full
|
||||
;;
|
||||
chat)
|
||||
echo "$service doesn't require a compilation"
|
||||
;;
|
||||
*)
|
||||
npm run compile:all
|
||||
;;
|
||||
esac
|
||||
popd
|
||||
done
|
||||
Regular → Executable
+4
-15
@@ -1,25 +1,14 @@
|
||||
#! env bash
|
||||
|
||||
[ -z "`type -t nvm`" ] && cat <<EOF
|
||||
|
||||
==========================================================
|
||||
== NVM not installed, you should consider installing it ==
|
||||
==========================================================
|
||||
|
||||
EOF
|
||||
|
||||
set -e
|
||||
|
||||
grep 'name:' config/services.js | \
|
||||
sed 's/.*name: "\(.*\)",/\1/' | \
|
||||
while read service
|
||||
do
|
||||
pushd $service
|
||||
echo "Installing Service $service"
|
||||
echo ' installing Node'
|
||||
type -t nvm && nvm install
|
||||
type -t nvm && nvm use
|
||||
echo ' installing Dependencies'
|
||||
npm install
|
||||
grunt install
|
||||
echo "Installing service $service"
|
||||
npm install --quiet
|
||||
popd
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user