Commit e4df6be8 authored by mserranom's avatar mserranom
Browse files

fixed install-services and split install and compilation

parent 79705322
#! env bash
set -ex
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
#! env bash
[ -z "`type -t nvm`" ] && cat <<EOF
==========================================================
== NVM not installed, you should consider installing it ==
==========================================================
EOF
set -ex
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 Node from .nvmrc"
nvm install && nvm use
echo "Installing service $service"
npm install --quiet
popd
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment