Browse Source

Removed sleep, comments, bash profile.

Edward Bramanti 10 years ago
parent
commit
52441d086c

+ 0 - 9
frameworks/JavaScript/express/setup.sh

@@ -13,12 +13,3 @@ nvm use 0.10.8
 # run app
 npm install
 node app &
-
-# !DO NOT REMOVE!
-#
-# It takes `node app` a few seconds to turn on and 
-# then fork. If you remove this sleep, the parent shell 
-# executing this script will be terminated before the 
-# application has time to awaken and be forked, and 
-# express will fail to be started
-sleep 5

+ 1 - 10
frameworks/JavaScript/hapi/setup.sh

@@ -11,13 +11,4 @@ nvm use 0.10.8
 
 # run app
 npm install
-node app &
-
-# !DO NOT REMOVE!
-#
-# It takes `node app` a few seconds to turn on and 
-# then fork. If you remove this sleep, the parent shell 
-# executing this script will be terminated before the 
-# application has time to awaken and be forked, and 
-# express will fail to be started
-sleep 5
+node app &

+ 0 - 3
frameworks/JavaScript/koa/bash_profile.sh

@@ -1,3 +0,0 @@
-#!/bin/bash
-
-export NODE_HOME=${IROOT}/node-v0.12.0-linux-x64

+ 1 - 21
frameworks/JavaScript/koa/setup.sh

@@ -2,10 +2,6 @@
 
 sed -i 's|mongodb//.*/hello_world|mongodb//'"${DBHOST}"'/hello_world|g' app.js
 
-# export NODE_ENV=production
-# export PATH=$PATH:$NODE_HOME/bin
-
-
 export NVM_HOME=${IROOT}/nvm
 # Used to avoid nvm's return 2 error.
 # Sourcing this functions if 0 is returned.
@@ -13,22 +9,6 @@ source $NVM_HOME/nvm.sh || 0
 nvm install 0.11.16
 nvm use 0.11.16
 
-
 # run app
 npm install
-node --harmony app &
-
-# export NODE_HOME=${IROOT}/node-v0.12.0-linux-x64
-# export PATH=$PATH:$NODE_HOME/bin
-
-# ${NODE_HOME}/bin/npm install
-# ${NODE_HOME}/bin/node --harmony app.js &
-
-# !DO NOT REMOVE!
-#
-# It takes `node app` a few seconds to turn on and 
-# then fork. If you remove this sleep, the parent shell 
-# executing this script will be terminated before the 
-# application has time to awaken and be forked, and 
-# express will fail to be started
-sleep 5
+node --harmony app &

+ 1 - 10
frameworks/JavaScript/nodejs/setup.sh

@@ -11,13 +11,4 @@ nvm install 0.10.8
 nvm use 0.10.8
 
 npm install
-node hello.js &
-
-# !DO NOT REMOVE!
-#
-# It takes `node app` a few seconds to turn on and 
-# then fork. If you remove this sleep, the parent shell 
-# executing this script will be terminated before the 
-# application has time to awaken and be forked, and 
-# express will fail to be started
-sleep 5
+node hello.js &