0
I have to run my Rails app on one machine and DBMS (in this case Postgresql) on another server.
I set up the 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 do deploy error occurs:
[out :: appreviews.cloudapp.net] Gem::Installer::Extensionbuilderror: ERROR: Failed to build Gem
Because that mistake?
You already have the postgre installed on the machine?
– Felipe Avelar
Edit your question by adding more information. For example: which operating system are you using? You can put the complete error?
– user7261
You can put internal IP if you are on the same network the db and the app, both is q in the Development the default is localhost
– Felipe Bergamo
Because in his
Gemfile
has anygem
that uses shared libraries that are not present or not found at the timeRubygems
is invoked to install dependencies. If you post the error backtrace in addition to the information already requested in the comments it is much easier to try to help you.– Bruno Coimbra