My angular cli app works fine with mongodb locally. Locally, I run two services,
node server.js
on port 3000, and
ng serve --proxy-config proxy.json
on port 4200.
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?
Open the browser, no data properly got from ":8080/api/models:1
Failed to load resource: the server responded with a status of 404 (Not Found)"
"/api/models:1" should be from running "node server.js" , I guess. Where/how to "scp" "server.js" to server??
Thank you for your help.
This is not the same problem as "Deploy Angular 2 App with Webpack to Tomcat - 404 Errors", mine has server side.