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| #!/bin/bash | |
| ### BEGIN INIT INFO | |
| # Provides: thin | |
| # Required-Start: $local_fs $remote_fs | |
| # Required-Stop: $local_fs $remote_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: S 0 1 6 | |
| # Short-Description: thin initscript | |
| # Description: thin | |
| ### END INIT INFO |
| // Bot-mate by Zero.One (http://www.zeroone.st) | |
| // Simple nodejs server, that receives request with _escaped_fragment_ parameter, and renders back client-side gererated html from given host. | |
| // Useful for single-page apps, with hashbang-style routes, to make them crawlable, and bot-friendly. | |
| // (Read this great article for details: http://pivotallabs.com/seo-friendly-single-page-apps-in-rails/) | |
| // | |
| // Requirements: node and phantomjs in your PATH. | |
| // TODO: Exception handling | |
| // TODO: Caching support | |
| // TODO: Add Nginx and Apache config example | |
| // |