Skip to content

Dos and powershell scripts for batch deployment of PHP files with the putty utility for secure file transfers (psftp)

Notifications You must be signed in to change notification settings

coyote333666/ppd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ppd - PHP Putty deployment

Dos and powershell scripts for batch deployment of PHP files with the putty utility for secure file transfers (psftp)

Requirements

  • psftp - putty utility - Windows Client side;
  • powershell - Windows Client side;
  1. In the header of modified files, in the creation or modification section, indicate the batch id. This string may be date of modification and the initials of the developer separated by the underscore and followed by a sequential number (the number sequential is optional), for example: 2020-07-31_VF_01. It's this batch id which is reported in the header deployment script. Research on the application directory for files containing this batch identifier allows to select the files to deploy. In fact, any chain of character used one or more times in the file to be deployed will work, but it is recommended to use this standard.

  2. From DOS Shell, we run the following commands to generate the DOS batch files using secure transfer with the psftp utility by putty, then, we execute:

gen_deployment.bat
deployment.bat
  1. If necessary, backtrack by executing the ROLLBACK : script_ROLLBACK.scr. The .bak files on the server always match the version before the last deployment.

About

Dos and powershell scripts for batch deployment of PHP files with the putty utility for secure file transfers (psftp)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published