How do you good people develop offline?
-
Hello world,
Scavenging my way around WP docs and assorted PHP scripts, I’ve managed to put up a reasonably functional website which looks more or less the way I wanted (nothing spectacular). I’ve spent a week developing with MAMP (Mac Apache MySQL PHP), CSS Edit and a text editor. The SQL database is located directly on my ISP’s server and this is the one which was used for posts & pages. Everything else (templates, CSS, PHP, images, audio) was running from my /localhost/ before publishing, but WP was referencing the online database at all times.
Finally a happy moment arrived, when I’ve uploaded the works and went to the dashboard to change 192.168.0.4 into http://www.mysite.com. It works fine.
However, I’ve learned pretty quickly that WP stores its root folder in the SQL database (or so it seems). Now, if I want to test a change to the template, I simply cannot change the root folder to my local server because then the entire online site will go offline.
This is not only extremely difficult for PHP stuff but also for CSS. Using CSS Edit I can preview changes in realtime on my Mac, but I have a networked PC on which I run IE6 just to see how it screws up layouts. I can’t do that anymore.
Yes, I know, I should have thought of that beforehand. But I didn’t.
Do I need to replicate the SQL database locally in order to develop safely before committing templates to the world, or is there another way?
Thanks a lot for your help.
The topic ‘How do you good people develop offline?’ is closed to new replies.