Ravindra BagaleCourses & study guides

Chapter 12: Technology Stacks — LAMP, LEMP, MEAN, MERN

Common Mistakes I See Students Make

  • Running npm start / ng serve on the server and opening port 3000/4200 to the world instead of building and serving with Nginx.
  • Missing try_files $uri $uri/ /index.html; → refreshing a React/Angular route gives 404.
  • Copying the whole project folder (with node_modules) instead of only the dist/ build output.
  • Opening port 27017 in the security group or changing bindIp to 0.0.0.0 without authentication.
  • Installing MongoDB from an outdated distro package or mixing repository versions.
  • Building on a 1 GiB instance without swap → the build is killed (out of memory).