Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #8877
| From | "J.O. Aho" <user@example.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: can't get includes to load |
| Date | 2013-03-27 11:03 +0100 |
| Message-ID | <arfufhFit0mU2@mid.individual.net> (permalink) |
| References | (2 earlier) <3bednVqnL5qAhc_MnZ2dnUVZ_q6dnZ2d@supernews.com> <oik4l8p0ba3bul14o0ohu58ad1l3opae1d@4ax.com> <arfjc4Fgi12U1@mid.individual.net> <p5qdncIFMa_sIM_MnZ2dnUVZ_ridnZ2d@supernews.com> <arfua1Fit0mU1@mid.individual.net> |
On 27/03/13 11:00, J.O. Aho wrote:
> On 27/03/13 10:35, Cal Dershowitz wrote:
>
>> Good enough for me to want to try it. Now ... where to install. I've
>> been developing my web capabilities through a mix of perl and bash
>> scripts. These have lain in a "parent" directory which heretofore has
>> been called 'migrate'. As the the name suggests, it's been moving
>> around to find a home. Subdirectories were projects that resulted in
>> web pages which I have used for my various and sundry purposes:
>
> first of all, I would remove all the files ending with ~
>
> find /home/sites/migrate -name "*~" -exec rm -f {} \;
>
> just copy paste that one, if you feel insure, then make a backup of the
> directory:
>
> cd /home/sites/ && tar -cf ~/migrate.tar migrate && cd && gzip migrate.tar
>
> (I know, you can simplify that)
>
> Keep in mind, both are "one liners" and just copy past from this post.
>
>> $ pwd
>> /home/sites/migrate
>> $ ls
>> a.html index.php nikon_bash1.sh~ reg1.pl
>> bash3.sh index.php~ nikon_bash2.sh reg1.pl~
>> bash3.sh~ melancholia nikon_bash2.sh~ reg2.pl
>> cleaning mel_ftp2.pl nikon_bash3.sh reg2.pl~
>> cp_1.pl micah nikon_bash3.sh~ reg2.pl.bak
>> dog migrate_ftp1.pl nikon_bash4.sh sos
>> food migrate_ftp1.pl~ nikon_bash4.sh~ style.css
>> food_1.html music nra style.css~
>> fredify2.sh music1.pl php Untitled Document 1
>> fredify2.sh~ music1.pl~ php1.sh variables
>> includes music2.pl phpini.sh
>> index.html~ nikon_bash1.sh phpini.sh~
>>
>> Beyond being the directory that localhost looks to as root, it's gotten
>> pretty junked up, in the sense that there's a lot in there that
>> shouldn't get loaded to the remote server. There are scripts to take
>> images from my camera and resize them in a child directory, such as this
>> new one:
>
> I would clean up things a bit, have your handy scripts in a directory
> outside and give it a better name than php, so you remember what you
> have there.
>
> When you have structured up things a bit, so you find you stuff easily,
> just make a git repository for it all
>
> cd /home/sites && git init && git commit -m "initial commit" -a
>
> now you will have everything in the git repository and you are ready to
> work. You have your tarball if you by mistake did delete a file you
> shouldn't have.
>
>> $ cd php
>> $ ls -l
>> total 12
>> drwxr-xr-x 3 fred automation 4096 Mar 26 17:14 php1
>> drwxr-xr-x 3 fred automation 4096 Mar 26 17:14 php2
>> drwxr-xr-x 3 fred automation 4096 Mar 26 17:14 template
>> $ cd php1
>> $ ls -l
>> total 12
>> drwxr-xr-x 2 fred automation 4096 Mar 27 00:13 includes
>> -rw-r--r-- 1 fred automation 2208 Mar 26 14:36 index.php
>> -rwxr-xr-x 1 fred automation 896 Mar 25 21:49 style.css
>> $
>>
>> In php1, I have a copy of what exists on my remote server now. php2 was
>> a copy I made of it just to start tapping away at. I was thinking that
>> php would be the place where I would want to run the init command.
>
> I would ditch the php2, no use of it, all work you do should origin from
> what you have live. Don't forget to create a new branch when you start
> to work with something, when you put something live, you merge that
> branch to master branch. So master should always be what you have in
> live, other branches are for what you are working on or testing.
Should have told you, if you want to make things a bit easier, you can
use a repository tool from atlassian, cost 10USD, but will be worth it,
stash makes it easier to merge things.
http://www.atlassian.com/software/stash/overview
--
//Aho
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
can't get includes to load Cal Dershowitz <cal@example.invalid> - 2013-03-25 23:52 -0700
Re: can't get includes to load "J.O. Aho" <user@example.net> - 2013-03-26 09:36 +0100
Re: can't get includes to load Cal Dershowitz <cal@example.invalid> - 2013-03-26 14:50 -0700
Re: can't get includes to load Jim Higgins <ILikeMy@Privacy.bogus> - 2013-03-27 02:14 +0000
Re: can't get includes to load "J.O. Aho" <user@example.net> - 2013-03-27 07:53 +0100
Re: can't get includes to load Cal Dershowitz <cal@example.invalid> - 2013-03-27 02:35 -0700
Re: can't get includes to load "J.O. Aho" <user@example.net> - 2013-03-27 11:00 +0100
Re: can't get includes to load "J.O. Aho" <user@example.net> - 2013-03-27 11:03 +0100
Re: can't get includes to load Cal Dershowitz <cal@example.invalid> - 2013-03-28 00:17 -0700
Git (Was: can't get includes to load) "J.O. Aho" <user@example.net> - 2013-03-28 08:35 +0100
Re: can't get includes to load Cal Dershowitz <cal@example.invalid> - 2013-03-28 00:41 -0700
Git (Was: can't get includes to load) "J.O. Aho" <user@example.net> - 2013-03-28 09:34 +0100
Re: Git (Was: can't get includes to load) Cal Dershowitz <cal@example.invalid> - 2013-03-29 00:28 -0700
Re: Git (Was: can't get includes to load) "J.O. Aho" <user@example.net> - 2013-03-29 13:14 +0100
Re: Git (Was: can't get includes to load) Cal Dershowitz <cal@example.invalid> - 2013-03-31 00:31 -0700
Re: Git (Was: can't get includes to load) "J.O. Aho" <user@example.net> - 2013-03-31 11:54 +0200
cleaning up first php page was Re: can't get includes to load Cal Dershowitz <cal@example.invalid> - 2013-03-27 00:00 -0700
Re: cleaning up first php page was Re: can't get includes to load "J.O. Aho" <user@example.net> - 2013-03-27 09:06 +0100
Re: cleaning up first php page was Re: can't get includes to load Cal Dershowitz <cal@example.invalid> - 2013-04-04 01:48 -0700
Re: cleaning up first php page was Re: can't get includes to load Cal Dershowitz <cal@example.invalid> - 2013-04-04 01:52 -0700
Re: cleaning up first php page was Re: can't get includes to load Jerry Stuckle <jstucklex@attglobal.net> - 2013-04-04 08:57 -0400
Re: can't get includes to load Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-03-27 09:08 +0100
csiph-web