--- misc/xoa-installer/xoa-installer.sh 2016/02/29 09:39:36 2957 +++ misc/xoa-installer/xoa-installer.sh 2016/02/29 09:49:28 2959 @@ -44,6 +44,11 @@ fi +if [ ! -x "/usr/bin/curl" ] ; then + echo "installing curl" + apt-get install curl || exit +fi + if [ ! -x "/usr/local/bin/n" ] ; then echo "installing node.js bootstrap" curl -o /usr/local/bin/n https://raw.githubusercontent.com/visionmedia/n/master/bin/n || exit @@ -52,7 +57,12 @@ if [ ! -x "/usr/local/bin/node" ] ; then echo "installing node.js" - n stable + n stable || exit +fi + +if [ ! -x "/usr/local/bin/gulp" ] ; then + echo "installing gulp" + npm install -x gulp fi @@ -76,13 +86,15 @@ # xo-server +echo "building xo-server" cd xo-server -npm install --unsafe-perm || exit +npm install || exit npm run build || exit cd .. #xo-web +echo "building xo-web" cd xo-web npm install --unsafe-perm || exit npm run build || exit