- postgresql_database database_name do
- cluster "9.1/main"
- owner "apis"
- end
-
- postgresql_extension "#{database_name}_btree_gist" do
- cluster "9.1/main"
- database database_name
- extension "btree_gist"
- end
-
- rails_port site_name do
- ruby node[:passenger][:ruby_version]
- directory rails_directory
- user "apis"
- group "apis"
- repository details[:repository]
- revision details[:revision]
- database_port node[:postgresql][:clusters][:"9.1/main"][:port]
- database_name database_name
- database_username "apis"
- run_migrations true
- end