I have one OpsWorks Nodejs Stack. I am setting up several nodejs applications. Now the problem is that all nodejs server.js scripts are listening on port 80 to check Amazon life, but only one can use a port. I do not know how to solve this. I read the amazon documentation but could not find a solution. I read that I can try to change the spread of the recipe variables to set this life check to a different port, but this did not work. Any help?
I struggled with this problem for a while and eventually found a very simple solution.
...
https://github.com/aws/opsworks-cookbooks/blob/release-chef-11.10/deploy/attributes/deploy.rb
default[:deploy][application][:nodejs][:port] = deploy[:ssl_support] ? 443 : 80
json , :
{ "deploy" : { "app_name_1": { "nodejs": { "port": 80 } }, "app_name_2": { "nodejs": { "port": 3000 } } }, "mongodb" : { ... } }
monitrc /etc/monit.d/node_web_app-.monitrc , monit !
, node, 80. , , . .
Source: https://habr.com/ru/post/1568546/More articles:When and why use macroC # define (x) instead of a function? - c ++How can I get generics in javadoc code block? - javaWhat is the meaning of these #defines? - cHow to include cross origin queries in compojure? - clojureHow to prevent bootstrap 3 (3.3.1) navbar-form from loading into a separate line on the mobile interface - cssBind or lock text to marker in Matplotlib - pythonCustom Meteor Registration Template - meteorHow to pass class constructor parameters in Spring bean Autowired by annotations - javajquery.css () not working - javascriptHow to convert a standard Time Noda identifier from English to localized? - c #All Articles