Download the PHP package hpatoio/deploy-bundle without Composer

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

DeployBundle

Total Downloads Latest Stable Version SensioLabsInsight

Installation

Run the command:

N.B. This project follow semantic versioning. Latest stable branch is 1.5.

Enable the bundle in your project

Configuration

Configuration is all about defining environments. You can define as many environments as you want, the only mandatory value is host. The deploy is made via rsync so default value are used if none are specified. Remember that to get the configuration reference for this bundle you can run:

Configuration example:

Most of the keys don't need explanation except:

post_deploy_operations

You can add a list of command you want run on the remote server after the deploy. In the configuration above you can see the common command you run after a deploy (clear the cache, publish assets etc) These commands are run as a shell command on the remote server. So you can enter whichever shell command you want (cp, rm etc)

Please don't confuse Symfony environment with deploy environment. As you can see in the configuration above we run post_deploy_operations for Symfony environment prod on deploy environment uat

rsync-options

If you add the key rsync-options to your environment you will override the default options used for rsync. So the system is using:

Rsync Exclude

Create a rsync_exclude.txt file under app/config to exclude files from deploy. here a good starting point.

You can also create a per-environment rsync_exclude. Just create a file in app/config with name rsync_exclude_{env}.txt. For more details you can read here #3 and here #7

Force vendor syncronization

Usually vendor dir is excluded from rsync. If you need tou sync it you can add --force-vendor. (see later for an example)

Use

Deployment is easy:

Feel a bit unsure ? Simulate the deploy

Need to update vendor ? Use the option --force-vendor (Usually vendor is excluded from rsync)

Custom parameters for rsync

License

DeployBundle is licensed under the CC-BY-SA-3.0 - see here for details


All versions of deploy-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
symfony/framework-bundle Version ~2.0|~3.0
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 hpatoio/deploy-bundle contains the following files

Loading the files please wait ....