Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Jun 12, 2013 6:26 pm 
Offline
Senior Newbie

Joined: Wed Jun 12, 2013 5:57 pm
Posts: 5
Hello, I was wondering what sort of strategies people use for development, test, and production versions of sites. In particular, how do you switch amongst them.

1) I realize that you could have 3 different linodes, but even so, I am wondering what sort of practices people use for the domain name. Could your dev and test sites be on the same linode and be accessible through different ports using the same domain name?

2) Regardless of strategy, I'm thinking that you would want to have a special indexDEV.html page, which would redirect to the index.html, that would need a password to prevent others from accessing your dev environment. Then, once you're finished with dev or test, you would leave the indexDEV.html or indexTEST.html behind, when you copy over to production. Makes sense?

Thanks for your assistance.

Joe


Top
   
PostPosted: Wed Jun 12, 2013 6:32 pm 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
deleted


Last edited by zunzun on Sun Aug 04, 2013 8:56 pm, edited 1 time in total.

Top
   
PostPosted: Wed Jun 12, 2013 6:55 pm 
Offline
Senior Newbie

Joined: Wed Jun 12, 2013 5:57 pm
Posts: 5
Thanks, James.

So, you might have

1.2.3.4 TestMyServer.com
1.2.3.4 ProdMyServer.com

in the /etc/host. Is that the idea?


Top
   
PostPosted: Wed Jun 12, 2013 6:58 pm 
Offline
Newbie

Joined: Wed Jun 12, 2013 6:37 pm
Posts: 2
I have *.dev.mydomain.com set to point to 10.0.0.8 which is my local dev box which allows all my devices on my home network to test dev sites.
I have my local dev box running lighttpd set to detect that subdomain and load /var/www/$subdomain so I can easily create a new folder and instantly get working on a new site without having to deal with new conf.
I use SVN to put my code on the testing & live sites. I know people say this is bad but I've done it in a smart way :).
I use a subdomain on each site (eg testing.domain.com) which is password protected in the lighttpd conf and which loads the /var/www/projectname/testing folder.
Once tested by the client, the live folder is updated over SVN which is almost instant.

This way I only need a single server using virtual hosts and no extra domains or dealing with hosts files. If I didn't want to run a local dev server it'd be fairly easy to do that on the live box too. With some sites I have a more complicated SVN setup but that's not really part of this discussion.


Top
   
PostPosted: Wed Jun 12, 2013 7:34 pm 
Offline
Senior Newbie

Joined: Wed Jun 12, 2013 5:57 pm
Posts: 5
Does the password protection for the test subdomain cause an html authentication like popup to require the password? I'm guessing you just don't have that set for the prod, then. Thanks.


Top
   
PostPosted: Wed Jun 12, 2013 8:31 pm 
Offline
Senior Newbie

Joined: Wed Jun 12, 2013 5:57 pm
Posts: 5
If I tried phrozen's approach - I'm using apache - is a subdomain set up like another virtual host?


Top
   
PostPosted: Wed Jun 12, 2013 11:20 pm 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
deleted


Last edited by zunzun on Sun Aug 04, 2013 8:57 pm, edited 1 time in total.

Top
   
PostPosted: Thu Jun 13, 2013 12:25 am 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Local server running Proxmox for dev and testing, VPS or Colo for production.

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
PostPosted: Thu Jun 13, 2013 12:26 am 
Offline
Senior Newbie

Joined: Wed Jun 12, 2013 5:57 pm
Posts: 5
Thanks James.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group