> Hey everyone,
>
> I develop quite some applications for my customers using CakePHP and I
> have the following problem:
>
> Usually, I develop an application on adomainname.com, and provide the
> customer with a development environment in which he can test changes
> before they go live. I usually put this on a subdomain, for instance:
> dev.adomeinname.com.
>
> Currently, I make changes to the development environment, and when
> they are good to go, I manually copy over the files that have changed
> to the live environment.
>
> Is there a way of automating this process? I guess what I'm looking
> for is something of a really dumbed down version of git/svn. I've
> tried accomplishing this through GIT, but it is way too complex for my
> purposes.
>
> How do you tackle this problem?
I just put this in the repos post-receive hook:
#!/bin/bash
ssh name@domain.name -q "cd /path/to/staging/app && git pull && chmod -
R 770"
Therefore whenever you push to your repo, the staging environment gets
updated.
is that the way too complex you were referring to?
As far as copying from dev.foo.com to www.foo.com - afaik - the normal
git way is to have them pulling off different branches e.g. master
branch (your dev. domain) and live. therefore to publish changes to
the main site means on your local machine merging master into live,
pushing, and then login to the server and just git pull the new
version.
hth,
AD
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment