[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How to handle configuration/ini files in a sandbox

From: David Weintraub <qazwart_at_gmail.com>
Date: Mon, 23 Feb 2009 11:31:17 -0500

I'm a bit confused what you're asking for:

* Do you mean that you have a bunch of production websites installed
that use the same general set of files, but things like web.ini differ
between those sites?

Or do you mean:

* You have a production website that uses files like web.ini for
configuration. Developers may check out code in Subversion, and they
may modify the web.ini file to match their system, but you don't want
these changes checked in because they cause problems in production.

One thing to do is have a deploy script that configures your
production. One of the things it would do is copy files like
web.ini.template to web.ini. Then, you'd use the svn:ignore attribute
and pre-commit triggers to prevent someone from accidentally
committing a file called web.ini.

That way, developers can create their own web.ini file without
affecting the one used by your production website (since that file's
name is web.ini.template).

On Sun, Feb 22, 2009 at 9:23 PM, Totte Karlsson <totte_at_monkisoft.com> wrote:
> Hi,
> I'm using subversion to handle some websites. In a site I may have
> some configuration files say, web.ini.
> I want to keep web.ini in the repository, but I don't want it to be
> updated when doing a svn update. Also, I only want the file to be
> committed when specifically saying so.
>
> The reason is that my webcode looks in web.ini, but depending on the
> website, the web.ini have different values. I
>
> I only want it to be updated when I specifically wants it to.
>
> Is the above possible with subversion?
>
> thanks
> -totte
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1212162
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
>

-- 
--
David Weintraub
qazwart_at_gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1215401
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-23 17:32:09 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.