title: Ruby on Rails. How to run two servers (different apps) on Amazon Ec2 at same time?
body: <p>I am triyn to deploy two different rails app in one Ec2 i can run one each time and work ok, but i need the 2 app running at same time and that can be accessed from anywhere not only localhost,I enable (add rule) two tcp port 3000 and 3001, this is my try:</p>
  
  <pre><code>/path/app1$ rails s -d 
  
  /path/app2$ rails s -b0.0.0.0 -p 3001 -d
  </code></pre>
  
  <p>this is the ps -ef command output</p>
  
  <pre><code>dev+  3028     1  0 17:10 ?        00:00:00 puma 3.11.2 (tcp://localhost:3000) [/]
  dev+  3160     1  0 17:14 ?        00:00:00 puma 3.11.3 (tcp://0.0.0.0:3001) [/]
  </code></pre>
  
  <p>also try to run app1 with -b0.0.0.0 so it can listen from anywhere, but same result: only 1 app is listening on 0.0.0.0.
  What I am missing? How can I run two servers at same time and listen both on 0.0.0.0.
  thanks </p>