Contact Us

(609) 630-0764

Drupal Migrations: Setting up a dev site once you are live

Tue, 10/04/2011 - 16:58 -- by John Cashman

Drupal MigrationsOnce you have your Drupal site up and running, it's a good idea to create a subdomain that can allow you and a team of developers to work on a website at once without mucking around too much with the site that is in production and already getting traffic.  One of the best ways to do this is to create a subdomain. Something like development.yourname.com. This can be easily done from your host's control panel which will typically have a big button that says "subdomain". From there you pull down your production site from the server to your hard drive and then copy it to the development site so that you have a mirror of the original site. Now you have a place where you can install new modules, try new themes, fix different pieces of code, etc. All of which can be done without harming any of the traffic you have in production as this environment can be closed off to people with no knowledge or the URL or access to that domain. When you are ready to go live you can either point the name servers to the new environment or move the files into production. Once the files are moved, the development and production environments should be mirrored again so you can work again on improving your website.

Term Reference: 

Comments

Submitted by Anonymous (not verified) on

In addition these are a couple things i do/use in the dev environment:

Its a good idea to make a development database, so that you arent manipulating your live database content data.

A really nice addon to Firefox is : Firebug: http://getfirebug.com/  really a useful tool for viewing your rendered html and css and the javascript console is great for testing jQuery statements

Another is Drupal for Firebug:  Drupal for Firebug: https://addons.mozilla.org/en-US/firefox/addon/8370   this provides, message log. variable dumps for users, forms, and nodes, and othere data about your views, really makes it easier than having to add var_dump randomly into your code.

Devel is great for managing SQL queries: devel: http://drupal.org/project/devel , lets you view all sql queries ran on a page, and can highlight the slow ones

 

Submitted by Anonymous (not verified) on

you sure?
care to elaborate?
i would be curious!
:-D