PHP deployment - Synchronize souces

14 views
Skip to first unread message

Fabricio De Marchi

unread,
Dec 4, 2015, 7:02:38 AM12/4/15
to Jenkins Users
Hi All,

Considering a simple scenario:
A PHP project in SVN, checkout and deploy it to several App servers running Apache (everything under Linux).

Considering that with SVN you can remove/delete sources in some situations, what would be a best practice to ensure the build/deploy process would synchronize the sources (new files, updates and deletes in SVN are applied to the servers)?

My initial thoughts:
1. Installing SVN client in the servers would NOT be the best option in my opinion. Servers should only contain what is necessary for your app to run in order to minimize security risks
2. Use RSYNC
3. Maybe have a symbolic link pointing to the app path in each server so a SVN checkout would take care of that "sync"

There might be some plugin that takes care of that but I am not aware of it.

Eventually other aspects as unit test, security and other items will be added to the build/deploy process but for now the situation above is my main focus.

Thanks,
Fabricio

Baptiste Mathus

unread,
Dec 4, 2015, 11:54:53 AM12/4/15
to jenkins...@googlegroups.com

Not really a Jenkins question at first IMO.

Yeah, rsync would work I guess.
But IIUC your needs then what you want to use is a configuration management tool to configure and deploy you app where it has to be: Ansible, Puppet, Chef, you name it.

Jenkins could in that case responsible for handling the global lifecycle of all that. For example: at commit, run unit tests, deploy to UAT environment (via Ansible), etc.

HTH

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/fcdff0a7-ae09-421e-a523-c1cf1243b14e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages