[support] Best practices for stage <--> productions

Metzler, David metzlerd at evergreen.edu
Fri Feb 22 19:47:52 UTC 2013


No I do not.  I use git for code and only code.  Much of configuration (views content types,etc) for drupal is stored within the mysql database.   The database is not something that plays well with version control. (You don't want git to have the "Data" e.g. specific Articles and such in the DB but you might want the configuration) .
The backup/migrate module facilitates complete copies of the database from production back to staging/devel.  It does not require Git access to do.

In Drupal 8 we'll be excited to see much of this configuration information being able to be stored in the filesystem which is far more version controllable. Then you'll be able to choose configuration trees that could be managed with version control, but until then configuration is hopelessly mingled with content, and the line between them is both grey and subjective.

If you're planning on using git to track configuration (not source code) then I'd encourage you to look at features as others have suggested.   It will take more to ramp up on than backup/migrate, but I was under the impression that you wanted to avoid having your site admins do that.  Much depends on what kind of shop you are and what fits best with your current practices.

Dave

________________________________
From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On Behalf Of Anthony
Sent: Friday, February 22, 2013 10:54 AM
To: support at drupal.org
Subject: Re: [support] Best practices for stage <--> productions

David when you say clones do you mean working with git?
In our online study group at http://drupalistasgroup.com/  we have been exploring multi-sites and backup and migration strategies. As you said there are lots of strategies.
Anyone is welcome to join us.

Tony

On Fri, Feb 22, 2013 at 8:35 AM, Metzler, David <metzlerd at evergreen.edu<mailto:metzlerd at evergreen.edu>> wrote:
You should really check out

http://drupal.org/project/backup_migrate

There are lots of strategies out there, but I tend to follow the following strategy.

* Set up identical but separate staging/development environments.
* Do periodic clones from  production back to test/staging.
* use the export import features that are provided with many key project (e.g. views, cck, panels) to move larger config changes to prod, and do the rest (tweaks) manually, first in test, then in prod.

Many people would talk about using modules like features, etc to facilitate deployment, but I've found that most push config synchronization strategies create more work than they save.

My 2 cents anyway.

Also if you're a UNIX admin and new to the community.... you really need to get and install drush.  http://drupal.org/project/drush

Dave

-----Original Message-----
From: support-bounces at drupal.org<mailto:support-bounces at drupal.org> [mailto:support-bounces at drupal.org<mailto:support-bounces at drupal.org>] On Behalf Of Zyumbilev, Peter
Sent: Thursday, February 21, 2013 9:54 PM
To: support at drupal.org<mailto:support at drupal.org>
Subject: [support] Best practices for stage <--> productions

Hi,

I have more than 10 years of web admin/dev experience but I am just
starting with drupal. I am about to set stage/dev environment for the
first project. Both production and stage are Unix(Freebsd), I have full
root access. What should be the best practices I should follow.

So far I found these:

(1) http://drupal.org/project/drush_ctex_bonus
(2) http://community.aegirproject.org/


What do you advise for best practices ? Nice to have, but not a must is
to be simple for the web developers e.g "press button sync": i.e they do
not need to contact for export, they do not need to go under ssh and use
git/svn.


Thanks,


Peter
--
[ Drupal support list | http://lists.drupal.org/ ]
--
[ Drupal support list | http://lists.drupal.org/ ]



--

Anthony Stefan Maciejowski

www.Tony-Mac.com<http://www.Tony-Mac.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20130222/28197966/attachment-0001.html 


More information about the support mailing list