You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by lu...@apache.org on 2010/07/09 01:36:54 UTC

svn commit: r962210 - /incubator/deltacloud/trunk/server/bin/deltacloudd

Author: lutter
Date: Thu Jul  8 23:36:54 2010
New Revision: 962210

URL: http://svn.apache.org/viewvc?rev=962210&view=rev
Log:
* bin/deltacloudd: allow setting environment with RACK_ENV

Modified:
    incubator/deltacloud/trunk/server/bin/deltacloudd

Modified: incubator/deltacloud/trunk/server/bin/deltacloudd
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/bin/deltacloudd?rev=962210&r1=962209&r2=962210&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/bin/deltacloudd (original)
+++ incubator/deltacloud/trunk/server/bin/deltacloudd Thu Jul  8 23:36:54 2010
@@ -58,10 +58,12 @@ if [ -z "$rerun" ]; then
   exit 1
 fi
 
+[ -z "$RACK_ENV" ] && RACK_ENV=development
+
 export API_DRIVER
 export API_HOST
 export API_PORT
 
 echo "Starting Deltacloud API :: '$API_DRIVER' driver :: http://$API_HOST:$API_PORT/api"
 
-rerun "thin start --debug --port=$API_PORT --address=$API_HOST -c '$topdir/libexec' -R config.ru"
+rerun "thin start --debug --port=$API_PORT --address=$API_HOST -e $RACK_ENV -c '$topdir/libexec' -R config.ru"