Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.


I have to deploy my zencart on my live server , when I deployed it on stage it was very painful.
I had to do everything step by step again , because of lots of customization it takes lots of time , effort and testing . Can anyone tell me better way to do this?

share|improve this question
add comment

2 Answers 2

If your live environment is a mirror of staging area you should be able to copy your completed copy of your site from your staging area to your live server when you are done developing it. You shouldn't need to go through the steps of reassembling it piece-by-piece on the live server. That kind of defeats the purpose of having a staging area in the first place.

share|improve this answer
    
There are some config files , which need to be changed.I dont how many are there.I know 2 of them , will work on them & find out.Also I wanted to know is here any change in db or not.But your post was helpful.Thanks. –  Debugger Jan 23 '12 at 6:17
add comment

As John states, the purpose of a staging area is to replicate your production environment so you can get the kinks out before you deploy to your production server(s). Ideally, you'd use the same VM image to ensure the two environments are identical, but if you can't then you should at least use the same OS and software versions.

Secondly, many of the repetitive manual tasks required in deployment can be automated. CI software like Capistrano, Puppet, etc. let you script your deployment tasks, such as fetching the latest files from your revision control server, uploading them to your production servers, running database migrations, regression testing, and automatically rollback to the previous revision if the deployment fails.

If you can't get your staging server identical to your production environment, then I would just set up a staging subdomain on the production server. Your deployment script can deploy to this subdomain, and if everything tests out, use a symlink to make it live.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.