Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript npm Basics (retiring) Installing Packages with npm Managing Dependencies in the package.json File

Development vs. Production environment

This may be a silly question, but can someone explain to me the difference between these two environments?

1 Answer

Production environments are the "live" or public version of a site site. A development environment can be several locations but are typically private. If you set up a local server on your computer, that can be a development system, if you own a domain called catsarethebest.com but you set up a subdomain called dev.catsarethebest.com for testing your code on, then that is also a development environment.

There are also staging environments too, which are just dev servers that a part of a version control process and might be the final place everyone's code goes to before it is deployed to production.

Makes total sense. Thanks.