#!/bin/bash
set -ev

rswd="\$(cd \$(dirname "\$0"); pwd)"
export RAM_CONF="\$rswd/backend/conf/conf.js"

echo RAM_CONF is $RAM_CONF

cd frontend
npm install
node_modules/.bin/typings install
jspm cc
jspm install -y

cd ../backend
npm install
node_modules/.bin/typings install
gulp serve &

cd ../tests
npm install
gulp test

#!/bin/bash
set -ev

export RAM_CONF=../../../conf/conf.js

cd frontend
npm install
node_modules/.bin/typings install
jspm cc
jspm install -y

cd ../backend
npm install
node_modules/.bin/typings install
gulp serve &

cd ../tests
npm install
gulp test

--- 
+++ 
@@ -1,10 +1,7 @@
 #!/bin/bash
 set -ev
 
-rswd="\$(cd \$(dirname "\$0"); pwd)"
-export RAM_CONF="\$rswd/backend/conf/conf.js"
-
-echo RAM_CONF is $RAM_CONF
+export RAM_CONF=../../../conf/conf.js
 
 cd frontend
 npm install
Use absolute path RAM_CONF and output
