From: Maxious Date: Thu, 28 Apr 2011 08:34:26 +0000 Subject: Dotcloud OTP changes X-Git-Url: http://maxious.lambdacomplex.org/git/?p=busui.git&a=commitdiff&h=2356e47af17129a4631c40c4e7b2f9673256e3cd --- Dotcloud OTP changes --- --- /dev/null +++ b/dotcloud/postinstall @@ -1,1 +1,19 @@ +#!/bin/bash +#dotcloud postinstall +curl http://s3-ap-southeast-1.amazonaws.com/busresources/cbrfeed.zip \ +-o /home/dotcloud/current/cbrfeed.zip +wget http://s3-ap-southeast-1.amazonaws.com/busresources/Graph.obj \ +-O /tmp/Graph.obj + +#db setup +#curl https://github.com/maxious/ACTBus-ui/raw/master/transitdata.cbrfeed.sql.gz -o transitdata.cbrfeed.sql.gz +#curl https://github.com/maxious/ACTBus-ui/raw/master/lib/postgis.sql -o postgis.sql +#createlang -d transitdata plpgsql +#psql -d transitdata -f postgis.sql +#gunzip /var/www/transitdata.cbrfeed.sql.gz +#psql -d transitdata -f transitdata.cbrfeed.sql +#createuser transitdata -SDRP +#password transitdata +#psql -c \"GRANT SELECT ON TABLE agency,calendar,calendar_dates,routes,stop_times,stops,trips TO transitdata;\" + --- /dev/null +++ b/dotcloud/push.sh @@ -1,1 +1,7 @@ +#wget http://s3-ap-southeast-1.amazonaws.com/busresources/opentripplanner-webapp.war +cp ~/workspace/opentripplanner/maven.1277125291275/opentripplanner-webapp/target/opentripplanner-webapp.war ./ +#wget http://s3-ap-southeast-1.amazonaws.com/busresources/opentripplanner-api-webapp.war +cp ~/workspace/opentripplanner/maven.1277125291275/opentripplanner-api-webapp/target/opentripplanner-api-webapp.war ./ +dotcloud push actbus.otp ./ + --- a/include/common-db.inc.php +++ b/include/common-db.inc.php @@ -1,6 +1,6 @@