Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Mar 06, 2013 12:51 pm 
Offline
Senior Member

Joined: Wed Jun 27, 2012 10:00 pm
Posts: 87
Website: http://hemonc.org/wiki/Main_Page
I'm an amateur and figuring out things as I go along, and I've reached the point where I'd like to try to try some additional things out on my installation. Since I may make mistakes, I'd like to do this on a development server rather than the actual production server, since there are people who are using my sites. What's the best way to do this and what do you all do? My current plan is to create another Linode within the same datacenter, copy over all the data, and develop on the new server. I'm a little unsure of the details; for example, would another Linode within the same datacenter have the same or different IP address? If it's different, that would make it easy to just update logs & databases, then swap IP addresses when everything is done.

What are your procedures for rolling out a development server and moving those changes to production? Any tips, step-by-step checklists, etc. would be greatly appreciated. Thanks.

_________________
Amateur, eager to learn.
My hematology, oncology, and chemotherapy regimen wiki


Top
   
PostPosted: Wed Mar 06, 2013 1:41 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
1) Setup VirtualBox on whatever OS you use on your Desktop
2) Setup a VM
3) Istall the same Distro and Apps that run on your Linode in the VM
4) ,
5) Profit...er Develop

Is there really any reason to dev on a public hosted system?
RAM is dirt cheap (more or less), add another 4gig to your Desktop and voila! there's your dev server.

Plus, with this method you have the bonus of KNOWING your code is transportable (and your install Doc's are current and up-to-date), since you'll have to move it from your inhouse dev VM to your public facing Linode to go live.

_________________
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: Wed Mar 06, 2013 2:01 pm 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 4:11 pm
Posts: 554
Website: http://www.unixtastic.com
Location: Europe
yaz wrote:
My hematology, oncology, and chemotherapy regimen wiki


Cool!

yaz wrote:
I'm an amateur and figuring out things as I go along, and I've reached the point where I'd like to try to try some additional things out on my installation. Since I may make mistakes, I'd like to do this on a development server rather than the actual production server, since there are people who are using my sites. What's the best way to do this and what do you all do? My current plan is to create another Linode within the same datacenter, copy over all the data, and develop on the new server. I'm a little unsure of the details; for example, would another Linode within the same datacenter have the same or different IP address? If it's different, that would make it easy to just update logs & databases, then swap IP addresses when everything is done.

What are your procedures for rolling out a development server and moving those changes to production? Any tips, step-by-step checklists, etc. would be greatly appreciated. Thanks.


Linode is really setup for people that know Linux pretty well. A lot of us do this for our day job so it's practically second nature. This forum is pretty helpful most of the time.

What I'd suggest is getting a second linode and setting it up identically to the first. The easiest way to do this is to use the clone tool in the Linode manager. It will let you clone your config and disks to a new Linode with a new hostname and IP. It's faster to clone to a new Linode in the same data center but it's not a requirement, the new one can be anywhere. Then boot the config on the new Linode and change all references to the now changed IP and hostname.

Then play away changing whatever you like. When you are happy just update your DNS so your live hostname resolves to the new server. You don't need to change IPs on linodes, just update DNS so your live internet name resolves to the new server.

You could alternatively do development on your home machine and save yourself the cost of a second Linode but then you don't get the cool clone tool and you need more downtime to move from development to production. Plus bandwidth is pooled between all Linodes you own although if you are running one website you likely don't need double the bandwidth.


Top
   
PostPosted: Wed Mar 06, 2013 5:39 pm 
Offline
Senior Member

Joined: Wed Jun 27, 2012 10:00 pm
Posts: 87
Website: http://hemonc.org/wiki/Main_Page
vonskippy wrote:
1) Setup VirtualBox on whatever OS you use on your Desktop
2) Setup a VM
3) Istall the same Distro and Apps that run on your Linode in the VM
4) ,
5) Profit...er Develop

Is there really any reason to dev on a public hosted system?

I understand what you're saying. Rolling out a new server locally would ensure that my documentation--which I have been doing, but is more topical rather than a perfect step-by-step--and backup strategies are robust enough to allow me to recover from a total disaster. I could have a nice local copy to develop on and push updates out with as I wish. However, the benefits would be as sednet points out: namely speed and ease of getting this dev server running and making it live. I regularly make multiple offsite backups of my most important data--my wiki's database--but I'm still figuring out on my own the best way to maintain updated offsite backups of my entire server, which will probably involve Rsync. The question for me is whether the time, effort, and immediate security to test out my disaster recovery plan now is worth the trade-off in convenience at this time rather than a few months in the future, when I anticipate having more free time to learn these things.

sednet wrote:
yaz wrote:
My hematology, oncology, and chemotherapy regimen wiki


Cool!

Thanks!

sednet wrote:
What I'd suggest is getting a second linode and setting it up identically to the first. The easiest way to do this is to use the clone tool in the Linode manager. It will let you clone your config and disks to a new Linode with a new hostname and IP. It's faster to clone to a new Linode in the same data center but it's not a requirement, the new one can be anywhere. Then boot the config on the new Linode and change all references to the now changed IP and hostname.

Then play away changing whatever you like. When you are happy just update your DNS so your live hostname resolves to the new server. You don't need to change IPs on linodes, just update DNS so your live internet name resolves to the new server.

Thanks, I think this makes more sense than my plan that had the extra IP swap. The big task would be for me to make sure all IP-related references are changed appropriately. I don't know if, for example, the IP data is populated automatically in some config files, and I'm not confident in my ability to find all of them without some error messages popping up.

_________________
Amateur, eager to learn.
My hematology, oncology, and chemotherapy regimen wiki


Top
   
PostPosted: Thu Mar 07, 2013 4:05 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
If you only have one IP address then by default Linode uses DHCP to configure it so you're fine there. Unless you've manually entered your IP somewhere you won't need to change anything except the hostname :)

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
PostPosted: Thu Mar 07, 2013 6:14 am 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 4:11 pm
Posts: 554
Website: http://www.unixtastic.com
Location: Europe
obs wrote:
If you only have one IP address then by default Linode uses DHCP to configure it so you're fine there. Unless you've manually entered your IP somewhere you won't need to change anything except the hostname :)


Plus if you clone from a live to a dev server you will find everything that needs to be updated just getting the dev server running. It might be just iptables rules and /etc/hosts if everything else binds either all addresses or localhost.


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