Deploying PHP on windows / unix servers

We have various php projects developed on windows (xampp) that need to be deployed in conjunction with linux / windows servers.

We used capistrano in the past to deploy from windows to linux servers, but recent changes in architecture and Windows servers left the old config not working. The recipe is great for deploying Linux, but it takes longer to set up Windows servers than it does now. Capistrano recipe ideas are valid answers. it is obvious that windows / linux servers do not share users, so this complicates the situation (in order to use capistrano with the same username / password everywhere).

We are currently using svn-update for Windows servers, which I don’t like as it leaves all svn files hanging on production servers. (and we still have to manually update them on windows) and manually update files using winscp and synchronize directories with their mappings with Linux.

My question is: what tools / settings do you propose to automate this deployment scenario: "Various php windows / linux developers deploying 2 + mixed windows / Linux machines"

(ps: we have no problem using Linux tools or anything working through cygwin, we just need to make the deployment a simple one-step operation)

edit: We cannot currently work in an all-linux environment; we must deploy them on both Linux and a Windows server. We can start the deployment from anywhere, but we would rather be able to do this from the environment.

+5
source share
5 answers

I use 4 different approaches depending on the client environment:

  • Capistrano and similar tools (effective but sophisticated)
  • rsync + to Windows, Linux, Mac (simple, non-disciplinary)
  • svn + to Windows, Linux, Mac (simple, non-disciplinary)
  • Scripts on the server (executed via the browser, complex)

There are some requirements that control what you need:

  • How much discipline do you want to provide
  • ( ) ( / )
  • , "we down"

, : , , , ( dev- ). , cron ( ), .

, svn rsync , , .

+4

, , , ... , , , Linux, Linux., . . .

. , . VirtualBox, Linux Windows. , Windows, , , .

, Capistrano ( ) .

, , Linux/Unix, , ! , :)

+1

Capistrano - , . , ?

0

capistrano?

svn-update?

?

0

You can set the property svn:ignorein the configuration files to svn updatenot delete them, and then use svn export /target/path/to get rid of the files .svnin your Subversion repository.

0
source

All Articles