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
# install git | |
sudo apt-get install g++ curl libssl-dev apache2-utils | |
sudo apt-get install git-core | |
mkdir ~/src | |
cd ~/src | |
# uncomment to disable SSL CA verification for the git clone step(s) | |
# export GIT_SSL_NO_VERIFY=1 |
==== products_controller_spec.rb ===== | |
describe ProductsController, "Handling POST for create" do | |
def sign_in_user | |
user = FactoryGirl.create(:user) | |
sign_in user, @user | |
end | |
def do_post | |
post :create, :product => @params |
sudo mkdir /var/pgsql_socket | |
chown $USER:staff /var/pgsql_socket | |
ln -s /tmp/.s.PGSQL.5432 /var/pgsql_socket/.s.PGSQL.5432 |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
canvas { | |
position: absolute; | |
} | |
</style> |