Skip to content

Ep 6: Same recipe, different kitchen

Episode 6 of 448 · Concept

In one sentence: your code is a recipe; your laptop and the server are two different kitchens, and the server is missing some ingredients.

Your laptop has everything the app needs, because you installed it all over time. The server only has what someone explicitly put there. Typical differences:

  1. Different versions: Node 22 on your laptop, Node 18 on the server.
  2. Missing pieces: a package, a file or a folder only you have.
  3. Different settings: environment variables, ports, file paths.
  4. Different operating system: macOS or Windows on your laptop, Linux on the server.
  • Write down every dependency (package files, versions).
  • Keep settings outside the code, in environment variables.
  • Later in the course: ship the whole kitchen with a container (Docker), so the app runs the same everywhere.