Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 19, 2008, 11:30:35 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Switch a test or dev site live quickly  (Read 736 times)
weaintsayin
Trekkie
**
Offline Offline

Posts: 17


« on: February 02, 2008, 03:27:39 AM »

I've just moved up to a VPS box and I want to know if there is a recommended or suggested way to run a sort of poor mans dev, test and live environment?

I'm looking at all the options and wondering if frame forwarding would work (where I switch the underlying physical position the frame forwarded domain points to) or if this would cause a search engine nightmare.

Should I just set up separate domains (that are not registered with DNS so I can see them but its hard for anyone else to) and then physically mv the httpdocs folder and various SQL databases?

Is there something clever I could do with symbolic links or by editing Apache to change where the pages are served from?

If anyone can point me to any blogs or explanations of something that would work I'd be very interested!

Thanks!
Logged
perestrelka
Administrator
Jedi
*****
Offline Offline

Posts: 974



« Reply #1 on: February 02, 2008, 04:03:09 AM »

Hi,

If I would need to deploy such environment, I would setup the development site as a password protected subdomain on the primary one and use a version control system such as CVS or Subversion to deploy the site into live environment on the main domain. Databases and databases connection details can be shared between the development subdomain and the main domain in such setup.

Just my 2 cents Wink
Logged

Kind Regards,
Vlad Artamonov
weaintsayin
Trekkie
**
Offline Offline

Posts: 17


« Reply #2 on: February 02, 2008, 05:47:09 AM »

Thank you for your answer, I hadn't thought of using Subversion but I guess I'm about out of practice. I think I used something like CVS (or a precursor?) more than 12 years ago when coding in C++.

To be honest the site won't change so dramatically in terms of files, but the SQL databases will be where most of the action is: Mediawiki, Wordpress and phpList.

I note that Subversion is used to maintain the Mediawiki code, is it easy to get running on my own server at Lunarpages? I'm not really sure which flavour of Linux I'm running at LP!
Logged
weaintsayin
Trekkie
**
Offline Offline

Posts: 17


« Reply #3 on: February 02, 2008, 06:03:28 AM »

Wow... Unix wasn't like this the last time I used it. I just typed:

yum install subversion

and it's done. Smile

I think I like Yum.
Logged
perestrelka
Administrator
Jedi
*****
Offline Offline

Posts: 974



« Reply #4 on: February 02, 2008, 08:44:29 AM »

Wow... Unix wasn't like this the last time I used it. I just typed:

yum install subversion

and it's done. Smile

I think I like Yum.

That's why we use Centos Wink. Please update this port if you have more questions on this.
Logged

Kind Regards,
Vlad Artamonov
geolev
Intergalactic Cowboy
*****
Offline Offline

Posts: 71


WWW
« Reply #5 on: February 19, 2008, 10:52:51 AM »

I haven't crossed this bridge yet so I am looking for a solution to this very same problem.

I put my current version of the site in the httdocs directory where the whole world can see it. I then started the next version of it by creating a password protected directory off of the httdocs directory. I called it 'sandbox'. I put my latest and greatest site there. This allows me and anybody else I choose to share the username and password with, to view the future site without exposing it to the whole world.

I haven't figured out the best way to seamlessly switch over to the new site yet. I thought there would be some Apache config thing I could to do but I haven't researched it yet.

My two cents as well,

George
Logged

JeremyD
SleePy...
Jabba the Hutt
*****
Offline Offline

Posts: 715


SMF Customizer Team Member


WWW
« Reply #6 on: February 19, 2008, 10:21:46 PM »

I have cpanel on my account, I have created another user and use su_php like lunar does for their shared accounts.
This lets me play in sandbox mode on my live server, if I run a bad script that sucks up resource usage, my server stops it and prevents the user (thanks to su_php running apache/php as the user) from using to many resources so my site just takes a little bump in page creation times.
I usually then use my both ftp accounts and with tab views I drag files from one tab to another (I think this is a transmit [for mac os x] only feature though) and it quickly downloads and uploads the files. Though on really big scripts I have done, I used the root account via ssh to move and change permissions on all files very fast.

Though I would suggest as well for a real nice sandbox mode to set up on your computer manually (this takes time to get it right) that emulates your live version setup. This way all tests can be done right on your computer, and its easier than always uploading file changes Very Happy I went so far on this as to emulate the cpanel setup with /home directories linked up properly.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM