Environment: AWS Beanstalk, 64bit Amazon Linux 2015.03 v1.4.1 running Ruby 2.1 (Passenger Standalone)
Project: Rails
The server had installed java-1.7.0-openjdk
, and JAVA_HOME = /usr/lib/jvm/jre
There are to issuses:
- gem install rjb, can’t find the floder /usr/lib/jvm/jre/include
1 2 3 4 5 6 |
|
- 504 Gateway-Timeout, when the request invoke some method depend
RJB
I had found a paragraph: http://xsen.iteye.com/blog/440675
The Reason
is rjb
, he said, and the solution is, in,passenger_ruby配置项下添加一行设置:
- if using nginx, add this code in passenger_ruby config,
rails_spawn_method conservative;
- if using apache, add this code in PassengerRuby config,
RailsSpawnMethod conservative
and I found s syntax code used for AWS Beanstalk, that is https://gist.github.com/luoguanzhong/bb684c59dfbe9ae02022.
Summary:You should login the server and see where the package install, and which it install. This could be help you quickly find the right solution.