ssh into your droplet
ssh root@<ip-address>
rails new <appname>
cd <appname>
rails s
command-d to open slip window
ssh into droplet in a new terminal window.
curl localhost:3000
You should see the html of the server's response.
su - postgres
psql
create role root with createdb login password 'complete';
contol-d to exit
type exit
rails new <appname> -d postgresql
cd into rails app
vim go into config/database.yml
username: root
password: complete
rails g scaffold Article title body:text
RAILS_ENV=production rake db:create db:migrate
RAILS_ENV=production rails s -d -b <ip-address> -p 80
Note: May need to hard code production secret codebase.