The best way to release production code

Is there any best practice for producing production code for PHP?

I know that with Java you can release source code as WAR or JAR, but does PHP have something like this?

As our organization grows, I would like to find a better way to release production code instead of the current process with an unacceptable one.

Current process:

  • Check new code on SVN (Subversion)
  • Make a backup of the current release of the script and add it using .bak.date_time_stamp
  • Move new script to production (FTP, SSH, SFTP)

You need an opportunity

  • revert changes
  • extra container (think JAR)
  • archive of current production code
  • automate? this is a wish list option

Any other suggestions / options / practices that would be good for inclusion? Looking for a change in the organization process.

+4
source share
2 answers

The gross equivalent of War or Jar will be Phar . There is a Cal Evans tutorial in

Will not be included in other deployment strategies because they were discussed earlier:

+4
source

Take a look at phar as an alternative to PHP jar / war; and in tools like phing for creating / deploying releases (this is a PHP ant variant)

+2
source

Source: https://habr.com/ru/post/1339386/


All Articles