我已经成功地将我的rails应用程序部署到我的环境中,但是当我看到监视仪表板上有0.0个ELB实例时,为什么会这样?为什么它的0.0 ELB实例?
这里是我的日志,当我部署:
INFO: Deploying new version to instance(s).
INFO: New application version was deployed to running EC2 instances.
INFO: Environment update completed successfully.
目前我只访问我的应用程序时,你得到的空白页,我想那是因为我得到了0.0 ELB实例
我将如何解决这个问题?
这里是一个快照:
编辑,活动日志:
[2015-08-23T17:18:03.570Z] INFO [18661] - [Application update/AppDeployStage1/AppDeployEnactHook/99_reload_app_server.sh] : Starting activity...
[2015-08-23T17:18:04.993Z] INFO [18661] - [Application update/AppDeployStage1/AppDeployEnactHook/99_reload_app_server.sh] : Completed activity. Result:
+ service passenger restart
According to the PID file '/var/app/support/pids/passenger.pid',
Phusion Passenger Standalone doesn't seem to be running.
If you know that Phusion Passenger Standalone *is* running then one of these
might be the cause of this error:
* The Phusion Passenger Standalone instance that you want to stop isn't running
on port 80, but on another port. If this is the case then you
should specify the right port with --port.
If the instance is listening on a Unix socket file instead of a TCP port,
then please specify the PID file's filename with --pid-file.
* The instance that you want to stop has stored its PID file in a non-standard
location. In this case please specify the right PID file with --pid-file.
/opt/elasticbeanstalk/support/conf/nginx_config_healthd.erb:49:in `block in write_nginx_config_file': undefined local variable or method `location_config_filename' for #<PhusionPassenger::Standalone::StartCommand:0x007f7ab$
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/erb.rb:863:in `eval'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/erb.rb:863:in `result'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/passenger-5.0.15/lib/phusion_passenger/standalone/start_command/nginx_engine.rb:120:in `block in write_nginx_config_file'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/passenger-5.0.15/lib/phusion_passenger/standalone/start_command/nginx_engine.rb:113:in `open'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/passenger-5.0.15/lib/phusion_passenger/standalone/start_command/nginx_engine.rb:113:in `write_nginx_config_file'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/passenger-5.0.15/lib/phusion_passenger/standalone/start_command/nginx_engine.rb:41:in `start_engine_real'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/passenger-5.0.15/lib/phusion_passenger/standalone/start_command.rb:609:in `start_engine'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/passenger-5.0.15/lib/phusion_passenger/standalone/start_command.rb:80:in `run'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/passenger-5.0.15/lib/phusion_passenger/standalone/main.rb:50:in `run!'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/passenger-5.0.15/bin/passenger:44:in `<top (required)>'
from /opt/rubies/ruby-2.2.2/bin/passenger:23:in `load'
from /opt/rubies/ruby-2.2.2/bin/passenger:23:in `<main>'
[2015-08-23T17:18:04.993Z] INFO [18661] - [Application update/AppDeployStage1/AppDeployEnactHook] : Completed activity. Result:
Successfully execute hooks in directory /opt/elasticbeanstalk/hooks/appdeploy/enact.
你可以附上截图吗?不确定你的意思是0.0个实例。 –
请看上面的 – simo