First create a Ubuntu 13.04 x64 droplet on DigitalOcean Control Panel
Then ssh with root account, run this in termianl:
$ wget -qO- https://raw.github.com/progrium/dokku/master/bootstrap.sh | sudo bash
2013-04-26T19:55:16.878249+00:00 app[web.9]: Started GET "/members" for 108.162.219.131 at 2013-04-26 19:55:16 +0000 | |
2013-04-26T19:55:16.878645+00:00 app[web.9]: ** [NewRelic][04/26/13 19:55:16 +0000 fcde660b-20f6-4b45-80a6-610ebe1c5a1e (157)] ERROR : Error getting query plan: | |
2013-04-26T19:55:16.878645+00:00 app[web.9]: ActiveRecord::StatementInvalid: PG::Error: ERROR: there is no parameter $1 | |
2013-04-26T19:55:16.878645+00:00 app[web.9]: LINE 1: ...ECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 | |
2013-04-26T19:55:16.878645+00:00 app[web.9]: ^ | |
2013-04-26T19:55:16.878645+00:00 app[web.9]: : EXPLAIN SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 | |
2013-04-26T19:55:16.878645+00:00 app[web.9]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/postgresql_adapter.rb:650:in `exec' | |
2013-04-26T19:55:16.878645+00:00 app[web.9]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/ |
import java.io.FileWriter | |
val fw = new FileWriter(outputFilename, true) | |
try{ | |
fw.write(w.toString) | |
} finally{ | |
fw.close |