PHPackages                             tschifftner/magento2-deployscripts - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. tschifftner/magento2-deployscripts

ActiveMagento2-component[DevOps &amp; Deployment](/categories/devops)

tschifftner/magento2-deployscripts
==================================

Collection of scripts for Magento 2 builds and deployments

3517814[1 PRs](https://github.com/tschifftner/magento2-deployscripts/pulls)Shell

Since Nov 9Pushed 2y ago6 watchersCompare

[ Source](https://github.com/tschifftner/magento2-deployscripts)[ Packagist](https://packagist.org/packages/tschifftner/magento2-deployscripts)[ RSS](/packages/tschifftner-magento2-deployscripts/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Magento2 Deploy Scripts
=======================

[](#magento2-deploy-scripts)

Scripts to deploy Magento2 projects with Jenkins / CI Pipeline. This includes packaging the project and deploying it while setting all required variables for database, environment, etc.

Deploy scripts are based on the superb work of [@fbrnc](https://twitter.com/fbrnc) and AOE () for Magento 1

How deployment works
--------------------

[](#how-deployment-works)

1. Whole Magento project is packaged into an build archive (project.tar.gz)
2. Generated build archive is copied to a central storage server
3. Deploy scripts are cloned for deployment on staging/production server
4. deploy.sh is executed, downloads and unpacks package.tar.gz and runs install.sh

```
magento2-deployscripts/deploy.sh -r /tmp/artifacts/project.tar.gz -e devbox -d -t /var/www/project/devbox/

```

5. install.sh sets database and environment variables
6. Cleanup of older releases

Defining settings with zettr.phar
---------------------------------

[](#defining-settings-with-zettrphar)

Define configuration in config/settings.csv regarding the zettr documentation

- Environment Settings
- Database updates
- XmlFile configuration

Installation
------------

[](#installation)

Add this package to your Magento composer.json:

```
"require": {
    "tschifftner/magento2-deployscripts": "dev-master"
 },

```

To use zettr with Magento2 you need to add it too (respository is required as long as the pull request is not merged)

```
"require": {
    "aoepeople/zettr": "@dev"
 },
   "repositories": {
     "0": {
       "type": "vcs",
       "url": "https://github.com/tschifftner/zettr.git"
     }
   },

```

As there is a bug within Magento you currently require also

```
"require": {
    "tschifftner/magento2-module-tschifftner-deployhelper": "dev-master"
 },

```

Deployment (manual or by Jenkins job)
-------------------------------------

[](#deployment-manual-or-by-jenkins-job)

### 1) Build package

[](#1-build-package)

1. Update Magento2 project source code to latest version
2. Run shell commands:

```
bin/composer.phar update --verbose --no-ansi --no-interaction --prefer-source
vendor/tschifftner/magento2-deployscripts/build.sh -f project.tar.gz -b $BUILD_NUMBER

```

3. Archive artefacts and/or copy to central storage like sftp or s3

### 2) Deployment

[](#2-deployment)

Deployment for staging or production is all the same just with different variables.

1. Clone deployment scripts to accessible location

```
git clone https://github.com/tschifftner/magento2-deployscripts.git ~/deployscripts

```

2. Ensure scripts are executable

```
chmod +x ~/deployscripts/{deploy,cleanup}.sh

```

3. Deploy build package

```
# e = environment (staging,production,devbox,etc)
# r = package url
# u = user
# p = password
# t = project dir

~/deployscripts/deploy.sh -e staging -r http://storageserver.com/project.tar.gz -u 'user' -p 'password' -t /var/www/project/  || exit1

```

4. Cleanup old releases

```
~/deployscripts/cleanup.sh -r ~/releases/ || exit1

```

License
-------

[](#license)

[GNU General Public License v3.0](http://choosealicense.com/licenses/gpl-3.0/)

Author Information
------------------

[](#author-information)

- [Tobias Schifftner](https://twitter.com/tschifftner), [ambimax® GmbH](https://www.ambimax.de)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8efdb9ca503ce1ca4d650ae51ba85c9a1cc5de950c9a3947adcbed17df991e78?d=identicon)[tschifftner](/maintainers/tschifftner)

---

Top Contributors

[![tschifftner](https://avatars.githubusercontent.com/u/14741874?v=4)](https://github.com/tschifftner "tschifftner (35 commits)")[![mobilizer](https://avatars.githubusercontent.com/u/333002?v=4)](https://github.com/mobilizer "mobilizer (2 commits)")

### Embed Badge

![Health badge](/badges/tschifftner-magento2-deployscripts/health.svg)

```
[![Health](https://phpackages.com/badges/tschifftner-magento2-deployscripts/health.svg)](https://phpackages.com/packages/tschifftner-magento2-deployscripts)
```

###  Alternatives

[deployer/deployer

Deployment Tool

11.0k25.4M206](/packages/deployer-deployer)[appwrite/server-ce

End to end backend server for frontend and mobile apps.

55.3k84.2k](/packages/appwrite-server-ce)[pragmarx/health

Laravel Server &amp; App Health Monitor and Notifier

2.0k1.0M2](/packages/pragmarx-health)[felixfbecker/language-server-protocol

PHP classes for the Language Server Protocol

22476.7M6](/packages/felixfbecker-language-server-protocol)[heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP and Apache2/Nginx as on Heroku

8161.3M10](/packages/heroku-heroku-buildpack-php)[tiamo/phpas2

PHPAS2 is a php-based implementation of the EDIINT AS2 standard

4674.7k](/packages/tiamo-phpas2)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
