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

WordPress

Wordpress Development

Why are we doing all the hard work of downloading XAMPP and then transferring it to a live server instead of just installing WordPress on our web hosting site directly?

Is it develop locally? If it is, why are we transferring it to a live server?

1 Answer

The reason we develop locally first is that as a developer you have a secure and controlled environment to work in. It is extremely bad practice to code a live site. By doing so you negate using GIT, when you make an error your site will go down, and if you are building an online store, for example, when you crash their site, it can be that the company is loosing thousands of dollars per second because you crashed the site by live coding. You need an environment where you can safely make errors, and to unit test that you have coded. Once we see that would code is solid, then we push it to a live server.