Recommendations for working with sandboxes?

I currently work in an online store with virtually no formal processes and millions of PHP websites, including complex things like custom CMS and shopping cart code.

We are trying to improve the situation. I press CVS / SVN.

My question is: what is the best practice for working on a sandbox? We are on the LAMP stack. Some of our sites have tightly linked (or user-entered links) to the current domain, so setting up another domain, such as preview.mysite.com, will break the links pointing to www.mysite.com. If we start applying regression tests, maybe the domains should be homogeneous for testing? This can always be done using a local host entry.

So, given that we have many sites, it would be nice to have one process for previewing in a suitable sandbox. I wonder how this will integrate with the SVN / CVS loop.

I'm just looking for industry best practices because we are trying to get there. If this means cloning the site to an additional server, so be it.

+3
source share
2 answers

So you should have a second STAGE server. What I am doing is putting my CVS code in my dev block and making regular commits when I go. When I'm ready to push the version to the "STAGE" server, I look at the files that STAGE wants and mark them STAGE:

cvs tag -F STAGE

STAGE STAGE, STAGE:

cvs up -r STAGE

"STAGE" , STAGE :

cvs up

, STAGE, rsync...

, , STAGE . , , .

, , , , , RELEASE, RELEASE20090713 .. , , , . , ,

cvs up

STAGE.

, URL- ... .. ... , ... URL- Apache, URL STAGE, TCP-.

- , cisco, PAT ( ) IP-. 80 - , 8080 STAGE ( 80). , , - URL- Apache STAGE 8080 , . STAGE, apache .

+1

( ): hosts. . IP- www.mysite.com 127.0.0.1 IP- hosts. , , URL- , , . (ShowIP addon Firefox .)

CVS/SVN: SVN. , CSV, (, ). ., , .

, , : trunk ( , ). , , . . , ( ), , .. , , , , . , , .

+1

Source: https://habr.com/ru/post/1712478/


All Articles