Download the PHP package hipex/deploy-configuration without Composer

On this page you can find all versions of the php package hipex/deploy-configuration. 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 deploy-configuration

Hipex Deploy Configuration

These documentation is the guide to painlessly setup an automated deploy on the Hipex B.V. platform. The repository contains:

Whats inside?

Configuration

  1. Composer require hipex/deploy-configuration --dev package. Only needed when you want to have autocomplete in your deploy.php file.
  2. Copy the deploy templates inside the root of your project as deploy.php. You can find the template in templates/deploy.php. As you can see a $configuration variable is assigned a instance of a Configuration class. This configuration object contains the whole deploy configuration and can be altered to your needs using getters/setters. Change configuration matching you use case, and refer to the documentation for other build in configurations and tasks.
  3. Setup your CI server
    1. GitLab CI templates/.gitlab-ci.yml.
    2. Bitbucket templates/bitbucket-pipelines.yml.
  4. For Magento 2 your first build will fail due to missing configuration. Login to the server and depending on your project file edit the app/etc/env.php or app/etc/local.xml. You will find these files in ~/domains/<domain>/application/shared/.

Build steps

1. Build

Builds the application to prepare to run in a production environment.

You can define commands which needs to be executed during the build stage as follows:

$configuration->addBuildCommand(new \HipexDeployConfiguration\Command\Build\Composer())

This command will execute a composer install in your project folder install all project dependencies.

All possible commands can be found in the HipexDeployConfiguration\Command\Build namespace. Refer to the API docs for usage and options.

This repository contains a few application templates which specifies the common tasks and their order to get the application build correctly. See application templates for more information.

2. Deploy

Deploys the application which was build in the build stage to a given set of hosts.

First you need to define your environments / infrastructure.

To set extra SSH options (https://www.ssh.com/academy/ssh/config) for your server you can also provide these. For example:

You can define commands which needs to be executed during the deploy stage as follows:

$configuration->addDeployCommand(new \HipexDeployConfiguration\Command\Deploy\Magento2\CacheFlush())

All possible commands can be found in the HipexDeployConfiguration\Command\Deploy namespace. Refer to the API docs for usage and options.

3. Provision Platform services / configurations

Optionally you can have some services and application configurations setup automatically from your git repository to the Hipex platform

For example you could maintain your cron configuration in your GIT repository and have it automatically deployed to particular servers.

Or setup a varnish instance

For all possible tasks and configuration please refer to the API docs.

4. AfterDeploy tasks

After deploy tasks are triggered after a succesfull deployment. For example notifications are available.

Usage: $configuration->addAfterDeployTask(\HipexDeployConfiguration\AfterDeployTask\SlackWebhook())

Application template

We provide a few application template which define the common set of tasks to be executed for a specific application type. You could use those so you don't have to specify each task manually.

Available templates:

Example usage: $configuration = new Magento2('[email protected]:magento-2/project.git', ['nl'], ['nl'])

Required environment variables

Some specific environment variables are required to allow the deploy image access to the git repository or to be able to send out notifications.

Required

ServerRoles and Stages

Servers are defined with a given set of server roles

Most of the configurations can be specifically set for a given serverrole and/or stage.

This nginx configuration task will only be executed on production1, because this is the only one having server role APPLICATION

Most tasks are assigned logical server roles already, so no need to specify them in those cases.

Testing

To test your build & deploy you can run your deploy locally.

First make sure you have all the required env variables setup using.

Then start your build / deployment run command from root of the project.

repeat -e for all env vars that are present during build


All versions of deploy-configuration 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 hipex/deploy-configuration contains the following files

Loading the files please wait ....