incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject svn commit: r962210 - /incubator/deltacloud/trunk/server/bin/deltacloudd
Date Thu, 08 Jul 2010 23:36:54 GMT
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"



Mime
View raw message