2017-10-25 11 views
0

自分のアプリでforeman startを実行しようとしています。フォアマンがレールアプリで正しく動作しない

が、それは

12:53:39 web.1  | started with pid 7647 
12:53:39 rails.1 | started with pid 7648 
12:53:39 webpack.1 | started with pid 7649 
12:53:39 web.1  | [passenger_native_support.bundle] trying to compile for the current user (hiro_yamada) and Ruby interpreter... 
12:53:39 web.1  |  (set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable) 
12:53:40 webpack.1 | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/bundler/gems/webpacker-78b2dd910603/lib/webpacker/dev_server_runner.rb:47:in `exec': No such file or directory - /Users/hiro_yamada/Dropbox/foriio/node_modules/.bin/webpack-dev-server (Errno::ENOENT) 
12:53:40 webpack.1 | from /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/bundler/gems/webpacker-78b2dd910603/lib/webpacker/dev_server_runner.rb:47:in `block in execute_cmd' 
12:53:40 webpack.1 | from /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/bundler/gems/webpacker-78b2dd910603/lib/webpacker/dev_server_runner.rb:46:in `chdir' 
12:53:40 webpack.1 | from /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/bundler/gems/webpacker-78b2dd910603/lib/webpacker/dev_server_runner.rb:46:in `execute_cmd' 
12:53:40 webpack.1 | from /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/bundler/gems/webpacker-78b2dd910603/lib/webpacker/dev_server_runner.rb:11:in `run' 
12:53:40 webpack.1 | from /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/bundler/gems/webpacker-78b2dd910603/lib/webpacker/runner.rb:6:in `run' 
12:53:40 webpack.1 | from /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/bundler/gems/webpacker-78b2dd910603/exe/webpack-dev-server:8:in `<top (required)>' 
12:53:40 webpack.1 | from bin/webpack-dev-server:17:in `load' 
12:53:40 webpack.1 | from bin/webpack-dev-server:17:in `<main>' 
12:53:40 webpack.1 | exited with code 1 
12:53:40 system | sending SIGTERM to all processes 
12:53:40 web.1  | bundler: failed to load command: passenger (/Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/bin/passenger) 
12:53:40 web.1  | SignalException: SIGTERM 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/native_support.rb:310:in `system' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/native_support.rb:310:in `sh_nonfatal' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/native_support.rb:337:in `block (3 levels) in compile' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/native_support.rb:335:in `chdir' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/native_support.rb:335:in `block (2 levels) in compile' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/utils/tmpio.rb:70:in `mktmpdir' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/native_support.rb:334:in `block in compile' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/native_support.rb:378:in `block (2 levels) in try_directories' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/native_support.rb:377:in `chdir' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/native_support.rb:377:in `block in try_directories' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/native_support.rb:371:in `each' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/native_support.rb:371:in `each_with_index' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/native_support.rb:371:in `try_directories' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/native_support.rb:329:in `compile' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/native_support.rb:219:in `compile_and_load' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/native_support.rb:52:in `start' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/native_support.rb:439:in `<top (required)>' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger.rb:240:in `require' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger.rb:240:in `require_passenger_lib' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/utils/file_system_watcher.rb:25:in `<top (required)>' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger.rb:240:in `require' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger.rb:240:in `require_passenger_lib' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/standalone/app_finder.rb:27:in `<top (required)>' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger.rb:240:in `require' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger.rb:240:in `require_passenger_lib' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/standalone/start_command.rb:288:in `find_apps' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/standalone/start_command.rb:59:in `run' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/src/ruby_supportlib/phusion_passenger/standalone/main.rb:51:in `run!' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/gems/passenger-5.1.8/bin/passenger:45:in `<top (required)>' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/bin/passenger:23:in `load' 
12:53:40 web.1  | /Users/hiro_yamada/Dropbox/foriio/vendor/bundle/ruby/2.2.0/bin/passenger:23:in `<top (required)>' 
12:53:40 rails.1 | terminated by SIGTERM 
12:53:40 web.1  | exited with code 1 

を言って私にエラーを与えてどのように私はこの問題を解決する可能性が...? ありがとうございました。


私はgemfileとバンドルに乗客を追加しようとしました...まだ動作しません。 私はルビーのバージョンを2.2.0に変更したときにsincの旅客がディレクトリruby/2.2.0 /の下にあったことに気付きました。そして、警備員が2.2.3でのみ実行できると言って、エラーが返されました。多分私がインストールした旅客の宝石は、ルビー2.2.3と互換性がありませんか?

マイprocfileとgemfileはあなたが旅客に問題がある

web: bundle exec passenger start -p $PORT --max-pool-size 6 
rails: PORT=3000 rails s 
webpack: bin/webpack-dev-server 

source 'https://rubygems.org' 
ruby "2.2.3" 

gem 'rails', '~> 5.1.1' 
gem 'uglifier', '>= 1.3.0' 
gem 'jbuilder', '~> 2.0' 
gem 'sdoc', '~> 0.4.0',   group: :doc 
gem 'spring',  group: :development 
gem 'passenger' 
gem 'paperclip', '4.3.6' 
gem 'rmagick' 
gem 'aws-sdk', '< 2.0' 
gem 'newrelic_rpm' 
gem 'friendly_id', '~> 5.1.0' 
gem 'ruby-oembed' 
gem 'impressionist' 
gem 'meta-tags' 
gem 'capybara' 
gem 'poltergeist' 
gem 'webpacker', github: 'rails/webpacker' 

# Client 
gem 'slim-rails' 
gem 'sass-rails' 
gem 'coffee-rails' 
gem 'jquery-rails' 
gem 'jquery-ui-rails' 
gem 'turbolinks' 
gem 'aasm' 
gem 'siteinfo_parser' 
gem 'open_uri_redirections' 

# Exception Notification to Slack 
gem 'exception_notification', :github => 'smartinez87/exception_notification' 
gem 'slack-notifier' 

# login 
gem 'devise' 

# Oauth 
gem 'omniauth' 
gem 'omniauth-facebook' 
gem 'omniauth-twitter' 
gem 'omniauth-instagram' 

# Auth 
gem 'cancancan', '~> 1.10' 

# SNS API 
gem 'koala' 
gem 'twitter' 
gem 'instagram' 

# manage constant file 
gem 'config' 

# Use ActiveModel has_secure_password 
gem 'bcrypt', '~> 3.1.7' 

# Pagination 
gem 'kaminari' 

# Auto-link 
gem 'rails_autolink' 

#font-awesome 
gem 'font-awesome-sass' 

# follow, like, mention 
gem 'socialization' 

# Copy to clipboard 
gem 'zeroclipboard-rails' 

group :development, :test do 
    gem 'better_errors' 
    gem 'binding_of_caller' 
    gem 'foreman' 
    gem 'pry-rails' 
    gem 'pry-byebug' 
    gem 'pry-doc' 
    gem 'pry-stack_explorer' 
end 

group :development do 
    gem 'pg' 
end 

group :test do 
    gem 'sqlite3' 
end 

group :production do 
    gem 'pg' 
    gem 'rails_12factor' 
end 
+0

あなたのプロフィールを添付できますか? –

+0

@ MaximPontyushenko bash_profile ??? –

+1

Procfile and Gemfile please – phoet

答えて

0

です。それを開発モードで実行してから、それを実動させてみてください。ログ出力でエラーが表示されるはずです。

これは、職員をデバッグするための最も一般的なアプローチです。

0

Gemfileにgem 'passenger'を追加し、bundleを実行してください。問題は、gem install passenger経由で乗客をインストールし、bundlerがそれをロードしていない可能性があります。

+0

ありがとう!私はあなたのアドバイスを試みたが、まだ働いていない..上記の私の前提を追加して、あなたの考えを知らせてください!ありがとう! –

関連する問題