title: deploy Angular Cli app on ubuntu server
body: <p>My angular cli app works fine with mongodb locally. Locally, I run two services,</p>
  
  <pre><code> node server.js
  </code></pre>
  
  <p>on port 3000, and </p>
  
  <pre><code> ng serve --proxy-config proxy.json
  </code></pre>
  
  <p>on port 4200. </p>
  
  <p>Now I tried to deploy it on an apache tomcat remote server. I have copied the content from the "/dist"  (after running "ng build --prod") folder to server under "apache-tomcat-8.0.47/webapps/", what else? </p>
  
  <p>Open the browser, no data properly got from ":8080/api/models:1 </p>
  
  <pre><code>Failed to load resource: the server responded with a status of 404 (Not Found)"
  </code></pre>
  
  <p>"/api/models:1" should be from running "node server.js" , I guess. Where/how to "scp" "server.js" to server??</p>
  
  <p>Thank you for your help.</p>
  
  <p>This is not the same problem as "<a href="https://stackoverflow.com/questions/39018765/deploy-angular-2-app-with-webpack-to-tomcat-404-errors">Deploy Angular 2 App with Webpack to Tomcat - 404 Errors</a>", mine has server side.</p>