FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » localhost + staging + production environments?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: localhost + staging + production environments? [message #171193 is a reply to message #171184] Wed, 29 December 2010 05:54 Go to previous messageGo to previous message
J.O. Aho is currently offline  J.O. Aho
Messages: 194
Registered: September 2010
Karma:
Senior Member
kentor wrote:
> Hello,
>
> I have a website say www.livesite.com which is currently running. I
> have been developing a new version of the website on my local machine
> with http://localhost and then committing my changes with svn to
> www.testsite.com where I would test the site on the livesite.com
> server but under another domain (its the same environment as the live
> site but under a different domain).
>
> Now I am ready to release the new version to livesite.com. Doing it
> the first time is easy, I could just copy & paste everything from
> testsite.com to livesite.com (not sure its the best way to do it).
>
> I want to keep testsite.com as a testing site where I would push
> updates, test them and once satisfied move to livesite.com but I am
> not sure how to do that after the new site is launched.. I don't think
> copy pasting the whole directory is the right way of doing it and it
> will break the operations of current users on the livesite.com.
>
> I also want to keep my svn history on testsite.com. What is the
> correct way of doing this with SVN ? Thank you so much!

As Jerry mentions, this is a bit off topic, but I think you have two options

1. You use svn to check out the live branch on the live environment, just see
to that the .svn directories can't be accessed trough the web (configure your
apache to not display those).

2. You rsync the code from the test environment to the live environment.

I think the first one would be a better one, as you may want to make some
changes in the live environment at the same time as you are working on a major
update on the testing/developing branch of the code.


--

//Aho
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: mathematic structures
Next Topic: Google calendar and apps
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 18:40:27 GMT 2024

Total time taken to generate the page: 0.05333 seconds