Download the PHP package plasticstudio/ps-deployer without Composer

On this page you can find all versions of the php package plasticstudio/ps-deployer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ps-deployer

ps-deployer

Quick access commands

dep deploy stage=uat

dep deploy stage=uat --branch=master

dep deploy stage=prod --tag=1.0.1

dep sitehost:prepare

dep sitehost:prepare:deploy stage=uat --branch=master

dep sitehost:backup

dep savefromremote:latest

dep savefromremote

dep savefromremote:db

dep savefromremote:assets

dep savefromremote:logs

dep loadtoremote:assets

Important

To keep normal set up - add to your docker file environment

- DEPLOYER_VERSION=6.8.0

Migrate from v6 to 7

  1. Make sure you are running the latest docker image (you can pull this from inside docker desktop). deployer 7 currently works with 8.1 and 8.0 docker images.
  2. Install the new module composer require --dev PlasticStudio/ps-deployer this now contains all the tasks that were present in the old deploy.php
  3. Rename your deploy.php to deploy-backup.php
  4. Create new deploy.php and add below new code all.

  5. Open files side by side copying across all site specific variables such as user, host, and files paths
  6. After copying you can now delete your old deploy-backup.php
  7. NEW CONTAINER: If this is a new container then we will need to prepare sitehost dep sitehost:prepare This will delete public folder and have it ready for symlink Set up ssh key for you to copy Set up php default config

    EXISITING CONTAINER: If this is an existing container then we will need to prepare sitehost. You will want to keep the current path for deploying. Uncomment the below line in your deploy.php file. //set('current_path', '/container/application/current');

    UPGRADING CONTAINER: todo

  8. If this is an existing container then the final thing we will need to do is on your FIRST deployment, deploy by release_name. This will be the current release +1. To find our the current release, ssh into the container and check the releases folder.

New set up

composer require PlasticStudio/ps-deployer

Create a new deploy.php file with the following contents and update where required:

Set up SiteHost ready for Deployer

todo follow guru card to set up, then you can run this command - this only needs to be run once

dep sitehost:prepare

This will:

If you are doing a container upgrade on Sitehost then you will want to run this command immediately after

dep sitehost:prepare:deploy stage=uat --branch=master

This will update the config to the defaults and fix the symlink

Deployments

Deploying a site

It’s as easy as dep deploy. This will give you the option of which host to deploy to and will get current git HEAD to deploy.

Database and assets

Make sure your deployer.php paths are set up correctly

Make a new backup, then save both db and assets from remote dep savefromremote:latest

Save both db and assets from remote dep savefromremote

Saves the most recent backup i.e. previous nights DB dep savefromremote:db

Saves the most recent backup i.e. previous nights Assets dep savefromremote:assets

Makes a temporary copy of current live assets, rolls back to this if there is a transfer issue. loadtoremote:assets

Docker

Deployer comes with ps docker image.

make sure to include - ~/.ssh:/tmp/.ssh:ro as a mounted volume in the docker-compose.yml

Keep old version of


All versions of ps-deployer with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package plasticstudio/ps-deployer contains the following files

Loading the files please wait ....