Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do I use phing locale or remote?

I have a question related to phing. Do I use it on my local development machine to deploy an application or do I call it via ssh from production machine? I'm not sure where to do the steps from Eran Galperin (What is your preferred PHP deployment strategy). I'm a beginner with deployment scripts. So be forgiving :)

Marco

like image 346
user272138 Avatar asked Feb 15 '10 08:02

user272138


2 Answers

You'll usually have two deploy scripts - One that you run locally, which ssh's in to the remote server and then kicks off the remote script.

Your local script might do an svn export, zip the contents and push them (scp) to the remote server first. The remote script would do stuff like migrating, restarting services etc.

like image 140
troelskn Avatar answered Sep 21 '22 01:09

troelskn


The basic strategy is that you create a build (well, basically a copy of your web application that you can put online) on your local machine, and then deploy it on the server.

like image 43
wimvds Avatar answered Sep 21 '22 01:09

wimvds