Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.