मैं वर्तमान में स्टेजिंग (उबंटू) पर Foreman चला रहा हूं और एक बार जब मैं इसे काम कर लेता हूं तो अपस्टार्ट का उपयोग करने के लिए स्विच हो जाएगा।फोरमैन Nginx शुरू नहीं कर सकता, लेकिन मैं इसे मैन्युअल रूप से शुरू कर सकता हूं। क्यूं कर?
मेरे Procfile.staging इस तरह दिखता है:
nginx: sudo service nginx start
unicorn: bundle exec unicorn -c ./config/unicorn.rb
redis: bundle exec redis-server
sidekiq: bundle exec sidekiq -v -C ./config/sidekiq.yml
मैं सफलतापूर्वक उपयोग nginx शुरू कर सकते हैं:
$ sudo service nginx start
हालांकि जब मैं $ foreman start
चलाने के लिए, जबकि अन्य तीन प्रक्रियाओं को सफलतापूर्वक शुरू, nginx नहीं है :
11:15:46 nginx.1 | started with pid 15966
11:15:46 unicorn.1 | started with pid 15968
11:15:46 redis.1 | started with pid 15971
11:15:46 sidekiq.1 | started with pid 15974
11:15:46 nginx.1 | Starting nginx: nginx.
11:15:46 nginx.1 | exited with code 0
11:15:46 system | sending SIGTERM to all processes
SIGTERM received
11:15:46 unicorn.1 | terminated by SIGTERM
11:15:46 redis.1 | terminated by SIGTERM
11:15:46 sidekiq.1 | terminated by SIGTERM
एस ओ फोरमैन द्वारा शुरू होने पर nginx क्यों शुरू नहीं हो रहा है?
अपने nginx लॉग देखें, "कोड 0 से बाहर निकलने" का अर्थ बहुत सी चीजें हो सकता है। आम तौर पर लॉग/var/log/nginx –
@TanelSuurhans पर सुझाव के लिए धन्यवाद मिल सकते हैं। दुर्भाग्य से दो लॉग हैं, लेकिन दोनों /var/log/nginx/access.log और /var/log/nginx/error.log खाली हैं। – Undistraction
क्या होता है यदि आप इसके बजाय '$ sudo foreman start' करते हैं? –