I have to run my rails app on a machine and the DBMS (in this case PostgreSQL) on another server.
I configured database.yml
as follows:
production:
<<: *default
database: nomedobanco
username: username
password: senha
host: banco.cloudapp.net[poderia aqui colocar ip interno?]
And the desploy.rb:
server "app.cloudapp.net", :web, :app
server "banco.cloudapp.net", :db,primary:true
When I deploy error occurs:
[out :: appreviews.cloudapp.net] Gem :: Installer :: ExtensionBuildError: ERROR: Failed to build gem native extension
Why this error?