I want to switch from heroku to opsworks with my Rails App, but I ran into trouble with that.
My App uses Rails 4.0.4 and Ruby 2.0.0 on a single Ubuntu 12.04 LTS t1.micro instance.
My Idea is to run the app on a rails layer in OpsWorks and to use RDS (Postgres) for my database.
So when I start an instance and deploy my app everything seems fine and the bundler installs all gems successfully.
But when I try to reach the app by the IP-Adress in browser it takes minutes for the server to respond to my request and it ends in a "We're sorry, but something went wrong." message.
I've also tried to get the log data from rails, but unfortunately the log/production.rb in the app's directory is empty.
Would be helpful if someone can provide a way how I can see the log-files or a way how to deploy a Rails app on OpsWorks with postgres database on RDS.
Iam only using "libpq-dev" as custom OS-Package and custom JSON, all other settings are default values.
[Update]
Found the correct log-file at /var/log/apache2/error.log
Server fails to connect to my RDS-Database
{
"deploy": {
"app_name": {
"database" : {
"adapter" : "postgresql",
"database" : "database",
"username" : "db_user",
"password" : "password",
"host" : "xyz.eu-west-1.rds.amazonaws.com",
"port" : "5432"
}
}
}
}