title: how to deploy nodejs api and vuejs app in one server
body: <p>I have developed node rest api and vuejs web applications, 
  Im trying to deploy both project in to one aws server which run ubuntu. 
  Both applications have different port, 
  domain I try to configure api.example.com for api and example.com for vue app. 
  I can run both applications once after running the command in SSH, but I need them to run it forever. 
  What I did,</p>
  
  <ol>
  <li>Deploy to apps separately </li>
  <li>Apps can access with ports</li>
  </ol>
  
  <p>I need them access </p>
  
  <ol>
  <li>api.example.com</li>
  <li>example.com </li>
  </ol>
  
  <p>what are the step to do,
  Any changes host file. </p>