Browse Source

Updated dart-redstone

msmith-techempower 10 years ago
parent
commit
411178b34a

+ 5 - 0
frameworks/Dart/dart-redstone/bash_profile.sh

@@ -0,0 +1,5 @@
+#!/bin/bash
+
+export DART_HOME=$IROOT/dart-sdk
+
+export PUB_CACHE=$IROOT/.pubcache

+ 8 - 0
frameworks/Dart/dart-redstone/setup.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+
+sed -i 's|host: .*|host: '"${DBHOST}"'|g' postgresql.yaml
+sed -i 's|host: .*|host: '"${DBHOST}"'|g' mongodb.yaml
+
+$DART_HOME/bin/pub upgrade
+
+$DART_HOME/bin/dart server.dart -a 0.0.0.0 -p 8080 -d ${MAX_THREADS} -i ${MAX_THREADS} &