Posts

Run the MEAN stack with IaaS

Image
I succeeded in running this MEAN stack on  Heroku , so then I tried it on IaaS (AWS). Installing http-server referring to ※p271, then building the product with $ng build --prod It didn't work well, and I tried using this as a reference, but no good. Finally, after deleting node_module and package-lock.json, when I run npm install, the error disappears. Before that, I didn't do npm install, so I think it might be this reason. After that, I did ng build --prod, accessed the AWS current directory, released the port, moved to the dist folder, and executed http-server. (It will not work if you add the project directory to the URL, so be careful. Also it is necessary to add the port number at the end of the URL) It seems to work with $npm start, but it didn't not go well. ※: Angular web application development start book ------- -8/26 P.S. ------- Although the entry screen appears above, the data stored in the DB is not read. An error also occurs in node server.js, so re-create