>> I have thought of that before but the problem is that Github attachs git
>> version (like 20-something hex characters) to the compressed directory
>> (theProgram-09ABDEADBEEF012345) in the tarballs and it's not as obvious
>> to know which directory that the tarball has extracted to.
Use regexes?
1. Clear out any old tars:
rm -f theProgram*.tar.gz
2. Grab the new one:
wget http://github.com/user_name/repository_name/tarball/master
3. Extract:
tar xvf theProgram*.tar.gz
I also agree with Ian that having a .git in your production directory
doesn't immediately sound like a bad thing.
On Thu, Mar 4, 2010 at 5:03 PM, Ian Monroe <[email protected]> wrote:
> On Thu, Mar 4, 2010 at 4:57 PM, Huan Truong <[email protected]> wrote:
> > On Thu, 04 Mar 2010 16:08 -0600, "Ian Monroe" <[email protected]>
> > wrote:
> >> On Thu, Mar 4, 2010 at 3:46 PM, Huan Truong <[email protected]> wrote:
> >> > Hi FSCKers,
> >> >
> >> > I have a working php system, nothing fancy, but once in a while I do
> >> > update it manually. The source is on Github. What I usually do when I
> >> > want to update the working system is to download the tarball from
> >> > Github, then untar -xzvf the tarball, then cp -R the untarred files to
> >> > the working production directory. It works but it's rather a boring
> job.
> >> >
> >> > Definitely I don't want the .git directory in my production directory
> to
> >> > serve the users -- so creating a .git repo right in the public_html
> web
> >> > directory is not really a good idea...
> >>
> >> I wouldn't worry about it. Usually the hidden .directories are ignored
> >> by web servers anyways, and even if they aren't, it doesn't really
> >> matter does it?
> >
> > I'm using nginx and it doesn't deny access to .directories, I have just
> > tried it. I don't know if .git directory has any sensitive information
> > or not... Actually I think I can deny access to .directories in the
> > nginx.conf file but it doesn't look very `nice'. If there is a way to
> > get rid of all those directories I always prefer doing it over having
> > .git in my production directory.
> >
>
> There's nothing in the .git directory that wouldn't be in the public
> github already.
>
> Unless you have a private github and you keep your SQL password or
> something in there. :)
>
> Ian
>
> -----------------------------------------------------------------
> To get off this list, send email to [email protected]
> with Subject: unsubscribe
> -----------------------------------------------------------------
>
>
--
Rob Dickerson
[email protected]