How to best update a website from subversion

前端 未结 10 1818
无人及你
无人及你 2021-01-01 02:45

I have a PHP website backed by a MySQL database and a small team of programmers submitting code to subversion. Typically we write code, test it locally, commit to subversio

10条回答
  •  伪装坚强ぢ
    2021-01-01 03:21

    I wouldn't recommend checking out your code to your production server. This can potentially expose svn control files (.svn) on the server.

    I would recommend using a script (python, ruby, etc.) combined with the command line svn and FTP client to export the files from svn and ftp the files to the server. The svn export command can be used to check out a set of files from the svn server without all the .svn directories. Also, don't forget to tag the svn repository when doing this so you have a checkpoint of what you have deployed.

提交回复
热议问题