mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #629 from overleaf/msm-fix-build
Fix install-services scripts
This commit is contained in:
commit
7b0bbc7eb9
3 changed files with 28 additions and 16 deletions
|
@ -1 +1 @@
|
||||||
6.11.2
|
10.16.0
|
||||||
|
|
23
server-ce/bin/compile-services
Executable file
23
server-ce/bin/compile-services
Executable file
|
@ -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
|
19
server-ce/bin/install-services
Normal file → Executable file
19
server-ce/bin/install-services
Normal file → Executable file
|
@ -1,25 +1,14 @@
|
||||||
#! env bash
|
#! env bash
|
||||||
|
|
||||||
[ -z "`type -t nvm`" ] && cat <<EOF
|
set -e
|
||||||
|
|
||||||
==========================================================
|
|
||||||
== NVM not installed, you should consider installing it ==
|
|
||||||
==========================================================
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
|
|
||||||
grep 'name:' config/services.js | \
|
grep 'name:' config/services.js | \
|
||||||
sed 's/.*name: "\(.*\)",/\1/' | \
|
sed 's/.*name: "\(.*\)",/\1/' | \
|
||||||
while read service
|
while read service
|
||||||
do
|
do
|
||||||
pushd $service
|
pushd $service
|
||||||
echo "Installing Service $service"
|
echo "Installing service $service"
|
||||||
echo ' installing Node'
|
npm install --quiet
|
||||||
type -t nvm && nvm install
|
|
||||||
type -t nvm && nvm use
|
|
||||||
echo ' installing Dependencies'
|
|
||||||
npm install
|
|
||||||
grunt install
|
|
||||||
popd
|
popd
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue