git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Jacob Helwig" <jacob.helwig@gmail.com>
To: Git <git@vger.kernel.org>
Cc: 4jxDQ6FQee2H@dyweni.com
Subject: Re: Git - Pushing to a production website
Date: Fri, 9 Jan 2009 22:41:54 -0800	[thread overview]
Message-ID: <8c9a060901092241y23e56cbbr6aa7f322afaa2f6b@mail.gmail.com> (raw)
In-Reply-To: <20090109222344.3539138a@family.dyweni.com>

On Fri, Jan 9, 2009 at 20:23,  <4jxDQ6FQee2H@dyweni.com> wrote:
> Hi,
>
> Our company's website is stored in a GIT Repository.
>
> The repository is coded for our test server.  When we push updates to
> the production server, have manually run a script to patch several
> files to make the code work on the production server (i.e. port
> numbers, etc).
>

Are these all static pages?  If they're Perl/PHP/Ruby/whatever, why
not add tests for the Live vs. Dev?  Check for an environment
variable, or a file on disk, etc, etc?  That way any checks described
below won't get "confused" by the (no longer necessary) patches, and
you won't have to worry about rebasing commits, and any potential
conflicts there.

> I'd like to write a script to email me whenever someone changes files
> on the production server without checking those changes back into git
> (i.e. running 'git status | grep "nothing to commit" ...').
>
> However, this approach get confused by the files patched to work
> correctly.
>
> Is there any way to 'save' those patched files so they don't get
> reported by 'git status', yet not mung up the git history every time
> we push out an update?
>
> Thanks!
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

  parent reply	other threads:[~2009-01-10  6:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-10  4:23 Git - Pushing to a production website 4jxDQ6FQee2H
2009-01-10  4:38 ` Boyd Stephen Smith Jr.
2009-01-10  4:46   ` 4jxDQ6FQee2H
2009-01-10  5:04     ` Boyd Stephen Smith Jr.
2009-01-10  5:30       ` 4jxDQ6FQee2H
2009-01-10  5:54         ` Boyd Stephen Smith Jr.
2009-01-10  5:58   ` david
2009-01-10  6:41 ` Jacob Helwig [this message]
2009-01-10 11:04 ` David Aguilar
2009-01-10 11:50 ` Sitaram Chamarty

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8c9a060901092241y23e56cbbr6aa7f322afaa2f6b@mail.gmail.com \
    --to=jacob.helwig@gmail.com \
    --cc=4jxDQ6FQee2H@dyweni.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).