Reputation: 2586
i am just wondering why it's hard to run my ROR app on aws Elaticbeanstalk? My apps works fine on localhost but when i deploy on aws it shows me this error
I would like to know how to properly deploy an rails app on aws, also how does the gems are installed by aws. Following are some of my config:
.ebextensions/ruby.config
option_settings:
- option_name: BUNDLE_DISABLE_SHARED_GEMS
value: "1"
- option_name: BUNDLE_PATH
value: "vendor/bundle"
packages:
yum:
git: []
My routes:
Apps2::Application.routes.draw do
devise_for :users, :controllers => { :omniauth_callbacks => "omniauth_callbacks" }
resources :posts
root :to => 'posts#index'
end
Also i would like to know is there any way we can debug our application once deployed on aws? Thanks
Upvotes: 0
Views: 351
Reputation: 6418
how does the gems are installed by aws [sic]
After pushing your application to Elastic Beanstalk, gems in the Gemfile are automatically installed. source
Also i would like to know is there any way we can debug our application once deployed on aws?
SSH into your instance, and navigate to /var/app/current/logs to inspect your Ruby on Rails logs.
Upvotes: 1
Reputation: 76
You will want to check your production logs:
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.loggingS3.title.html
or be a little more direct and just have the app display the complete error rather than the error page (config/environments/production.rb):
config.action_controller.consider_all_requests_local = true
(this is not good for production but very easy for debugging to get you going)
Upvotes: 1