Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-07-04 18:38:16

Distrahera
Member
Registered: 2008-09-20
Posts: 30

Create a dev URL, and develope with txpwhile old site is still running

As the title suggests, i’d like to develope my site with TXP while the old site is still running on the original url.

www.my-site.com/txpdev

while users can still find and use the original site at:
www.my-site.com

Is there a bet txp-practice for this? Do I simply install txp in a subfolder and leave the current site untouched while I develope the new site? And when switching to the new site, should I simply move txp to the root?

As you can tell, i’ve never tried this with TXP before and im uncertain how paths and stuff will act when moving url’s.. I’d appreciate a “Sure, this is how you do it.. “ =) I guess this is not an uncommon way of developement. Thank you!

Offline

#2 2009-07-04 20:13:12

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Create a dev URL, and develope with txpwhile old site is still running


Code is topiary

Offline

#3 2009-07-06 19:42:53

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: Create a dev URL, and develope with txpwhile old site is still running

This very morning I did the same thing. After developing the site on my own computer, I uploaded the files and database to the host in a demo/ directory so the clients could look everything over before it replaced their existing site. Once I got approval, I moved the files to the root:

$ mv demo/* .
$ mv demo/.htaccess .
$ mv demo/.svn . #This is only if you're versioning your files with Subversion.

I also changed the txppath in config.php, and then changed all the urls in Textpattern’s preference panes.

Last edited by johnstephens (2009-07-06 19:47:02)

Offline

#4 2009-07-06 21:50:56

Distrahera
Member
Registered: 2008-09-20
Posts: 30

Re: Create a dev URL, and develope with txpwhile old site is still running

Thanks, both links are very helpful.

Johnstephens => Looks smooth enough! On this project though, im not versioning my work. Its a small private project and Im the sole developer.

Offline

#5 2009-07-07 04:55:16

saccade
Plugin Author
From: Neubeuern, Germany
Registered: 2004-11-05
Posts: 521

Re: Create a dev URL, and develope with txpwhile old site is still running

What I did: Work on the same database – sharing live data – but fork page templates, forms and css.
This worked perfectly. Thanks to ruud!

The only caveat ist: You have to be careful changing categories/sections or move customs fields in articles because this could touch the structure of your original. But it depends if those changes have any effect in what you did in the original.

In my example I made a complete rework of the site while the original site was online. In my development version (located in a subdir) I changed templates and css and had a complete different view – but with all the data of the live version. When finished I simply copied the templates over.

(Regarding URLs: If you use <txp:site_url> for the root URL nothing has to be changed between dev and original site.)

Last edited by saccade (2009-07-07 05:01:16)

Offline

#6 2009-07-07 06:38:35

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: Create a dev URL, and develope with txpwhile old site is still running

Thanks, Michael— that might come in useful!

Offline

Board footer

Powered by FluxBB