PTDeploy

Synopsis

The ptdeploy envelops the applications of the users with automated deployment, build and release functions, web App versioning and infrastructure by code in PHP.

In order to build for well-deployment, many files are needed to be copied from FTP or other ad hoc solutions. And also lot of Enterprise Automation tools were missing. In order to overcome these shortages ptdeploy under the pharaoh tool were build up. PHP has ptdeploy just as ruby fiils the gap in ptdeploy.

This tool is for provisioning applications and builds to your boxes. The user can set up even simple or complex application deployment pattern to their system with one or two PHP files Or, quickly setup cloud friendly deployment patterns.

ptdeploy is modular, object oriented and extendible. So if the user requires any extra modules they can create and add the new modules based on their requirements.

This ptdeploy acts as a wrapper where all the steps of user deployment get covered into a single file. This allows using a single command to fire up an instance of your applications.

Help Command

This command helps to determine the usage of ptdeploy module. The user will come to know about the different way/format to execute this module. This command guides the end user to know the purpose of this command. Below given are the command and the screenshot of the same.

ptconfigure ptdeploy help

The screenshot for the above command is listed below,

kevell@corp:/# ptconfigure ptdeploy help
******************************


 This command allows you to update ptdeploy.

 ptdeploy, dapper, ptdeploy

       - install
       Installs the latest version of ptdeploy
       example: ptconfigure ptdeploy install

       - ensure
       Installs the latest version of ptdeploy, only if a version is not installed
       example: ptconfigure ptdeploy ensure

------------------------------
End Help
******************************

Installation

This command helps to install the latest version of ptdeploy. The below given command will execute the process of installation.

ptconfigure ptdeploy install

The screenshot for the above command is listed below,

kevell@corp:/# ptconfigure ptdeploy install
Install ptdeploy ? (Y/N)
Y
*******************************
*        Pharaoh Tools        *
*          ptdeploy         *
*******************************
What is the program data directory? Found "/opt/ptdeploy" - use this? (Enter nothing for yes, no end slash)

What is the program executor directory? Found "/usr/bin" - use this? (Enter nothing for yes, No Trailing Slash)

git clone 'https://github.com/PharaohTools/ptdeploy.git'  /tmp/ptdeploy/ptdeployCloning into '/tmp/ptdeploy/ptdeploy'...
remote: Counting objects: 6989, done.
remote: Total 6989 (delta 0), reused 0 (delta 0), pack-reused 6989
Receiving objects: 100% (6989/6989), 2.61 MiB | 176.00 KiB/s, done.
Resolving deltas: 100% (4335/4335), done.
Checking connectivity... done.
Program Data folder populated
Program Executor Deleted if existed
... All done!
*******************************
Thanks for installing , visit www.pharaohtools.com for more
******************************


Single App Installer:
--------------------------------------------
ptdeploy: Success
------------------------------
Installer Finished
******************************

Ensure

This command helps to install the latest version of ptdeploy, only if a version is not installed. The below given command will execute the process of installation.

ptconfigure ptdeploy ensure

The screenshot for the above command is listed below,

kevell@corp:/# ptconfigure ptdeploy ensure
[Pharaoh Logging] Ensure module install is not checking versions
[Pharaoh Logging] Module ptdeploy reports itself as Installed
[Pharaoh Logging] Not installing as already installed
******************************


Single App Installer:
--------------------------------------------
ptdeploy: Success
------------------------------
Installer Finished
******************************

Options

Parameters Alternative Parameter Options Comments
ptconfigure ptdeploy install? (Y/N) There are two alternative parameters which can be used in command line. ptdeploy, dapper, ptdeploy Example: ptconfigure ptdeploy install / ptconfigure dapper install Y System starts installation process
ptconfigure ptdeploy install? (Y/N) There are two alternative parameters which can be used in command line. ptdeploy, dapper, ptdeploy Example: ptconfigure ptdeploy install / ptconfigure dapper install| N System stops installation process

Benefits

  • Editing the host files, virtual host files, configuration files, database updates and more can all be automated using this.
  • By using the capability of remote server management, the users can automate deployments across infrastructure of any size.
comments powered by Disqus