[wp-hackers] What's the best solution to develop a website in sandbox?

Marty Fried public.forums at gmail.com
Sat Jul 16 16:11:28 UTC 2011


On Sat, Jul 16, 2011 at 8:15 AM, Bill Dennen <dennen at gmail.com> wrote:

> >
> > Personally, this whole process is one of the most annoying parts of using
> > WP as the basis for websites.   The idea that all the urls are hardcoded
> all
> > over the place in the db still boggles my mind, but I have heard it from
> the
> > mouth (in person) from those in charge that this will never change.
>
> I've wondered about the absolute urls I've seen (other than options, of
course).  It seems like they are mostly in the posts, in a GUID field, and I
wondered what effect they had, as I move data around occasionally and never
saw any evidence of effects.  I'm pretty careful not to use full urls in the
content, so that's never a problem.

For local development, I often just set up a virtual domain on my local
linux server, and point my hosts file on my development machines to this
domain.  Then, to access the real site, I just remove the entry from my
hosts file.  Usint this method, I can often completely replicate the remote
site, so I don't have to worry about accidentally uploading a configuration
file that I shouldn't.  But more often lately, I simply change the ".com" to
".dev" for local development, and then I can work on local and remote at the
same time, and do an easy search if there is an accident.
-- 
Marty Fried


More information about the wp-hackers mailing list