title: AngularJS frontend and Rails backend with AWS in Ubuntu
body: <p>I would like to discuss about <code>AngularJS</code> and <code>Ruby on Rails</code> working together and deployed in AWS (Amazon Web Services). </p>
  
  <p>So far, I have a development environment with an AngularJS frontend that sends request to a Ruby on Rails API backend. These both are two separate applications (they are in separated git repositories). </p>
  
  <p>The <code>AngularJS</code> app is running in a <code>Node.js</code> server listening on one port, and <code>Rails</code> is running in a <code>Webrick</code> server listening on another port. </p>
  
  <p>Although they work together, AngularJS is not physically integrated in the RoR app.</p>
  
  <p>Now its time to deploy in production environment. For that, I will use an <code>EC2 AWS</code> instance (currently deploying using Elastic Beanstalk). As far as I understand, I can't have the same architecture here.</p>
  
  <p>I would like to know your suggestions this point. Do you see any advantages or disadvantages? </p>
  
  <p>Should I update my development environment, so the <code>AngularJS</code> app is integrated inside the <code>RoR</code> application (and deploy just one application)?</p>
  
  <p>This is something I don't like, because I guess I have to modify many things. </p>
  
  <p>On the other hand, is it possible to run both applications separately, the same way I do in development? </p>
  
  <p>Can I install a <code>node.js</code> and a <code>Unicorn</code> or whichever server manually in production in the same instance? </p>