repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/resources/sql/patches/20130219.commitsummarymig.php
resources/sql/patches/20130219.commitsummarymig.php
<?php echo pht('Backfilling commit summaries...')."\n"; $table = new PhabricatorRepositoryCommit(); $conn_w = $table->establishConnection('w'); $commits = new LiskMigrationIterator($table); foreach ($commits as $commit) { echo pht('Filling Commit #%d', $commit->getID())."\n"; if (strlen($commit->getSummary())) {...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/resources/sql/patches/102.heraldcleanup.php
resources/sql/patches/102.heraldcleanup.php
<?php // Once, this migration deleted some unnecessary rows written by Herald before // January 2012. These rows don't hurt anything, they just cluttered up the // database a bit. // The migration was removed in January 2018 to make maintenance on rule // repetition policies easier.
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/resources/sql/patches/20130529.macroauthormig.php
resources/sql/patches/20130529.macroauthormig.php
<?php echo pht('Migrating macro authors...')."\n"; foreach (new LiskMigrationIterator(new PhabricatorFileImageMacro()) as $macro) { echo pht('Macro #%d', $macro->getID())."\n"; if ($macro->getAuthorPHID()) { // Already have an author; skip it. continue; } if (!$macro->getFilePHID()) { // No valid...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/resources/sql/patches/20130201.revisionunsubscribed.php
resources/sql/patches/20130201.revisionunsubscribed.php
<?php echo pht('Migrating Differential unsubscribed users to edges...')."\n"; $table = new DifferentialRevision(); $table->openTransaction(); // We couldn't use new LiskMigrationIterator($table) because the $unsubscribed // property gets deleted. $revs = queryfx_all( $table->establishConnection('w'), 'SELECT id, ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/resources/sql/patches/migrate-differential-dependencies.php
resources/sql/patches/migrate-differential-dependencies.php
<?php echo pht('Migrating differential dependencies to edges...')."\n"; $table = new DifferentialRevision(); $table->openTransaction(); foreach (new LiskMigrationIterator($table) as $rev) { $id = $rev->getID(); echo pht('Revision %d: ', $id); $deps = $rev->getAttachedPHIDs(DifferentialRevisionPHIDType::TYPECON...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/resources/sql/patches/20130919.mfieldconf.php
resources/sql/patches/20130919.mfieldconf.php
<?php echo pht('Migrating Maniphest custom field configuration...')."\n"; $old_key = 'maniphest.custom-fields'; $new_key = 'maniphest.custom-field-definitions'; if (PhabricatorEnv::getEnvConfig($new_key)) { echo pht('Skipping migration, new data is already set.')."\n"; return; } $old = PhabricatorEnv::getEnvCon...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/resources/sql/patches/20130926.dinline.php
resources/sql/patches/20130926.dinline.php
<?php $revision_table = new DifferentialRevision(); $conn_w = $revision_table->establishConnection('w'); $conn_w->openTransaction(); $src_table = 'differential_inlinecomment'; $dst_table = 'differential_transaction_comment'; echo pht('Migrating Differential inline comments to new format...')."\n"; $content_source =...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/resources/sql/patches/ponder-mailkey-populate.php
resources/sql/patches/ponder-mailkey-populate.php
<?php echo pht('Populating Questions with mail keys...')."\n"; $table = new PonderQuestion(); $table->openTransaction(); foreach (new LiskMigrationIterator($table) as $question) { $id = $question->getID(); echo pht('Question %d: ', $id); if (!$question->getMailKey()) { queryfx( $question->establishCo...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/resources/sql/patches/20130711.trimrealnames.php
resources/sql/patches/20130711.trimrealnames.php
<?php $table = new PhabricatorUser(); $conn_w = $table->establishConnection('w'); echo pht('Trimming trailing whitespace from user real names...')."\n"; foreach (new LiskMigrationIterator($table) as $user) { $id = $user->getID(); $real = $user->getRealName(); $trim = rtrim($real); if ($trim == $real) { e...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/resources/sql/patches/20131121.repocredentials.2.mig.php
resources/sql/patches/20131121.repocredentials.2.mig.php
<?php // This migration originally imported repository credentials from the old // inline format into Passphrase after the application was introduced. After // about 18 months, following the introduction of Spaces, it stopped running // cleanly. Installs older than Nov 2013 will need to manually fix repository // cred...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/resources/sql/patches/migrate-maniphest-revisions.php
resources/sql/patches/migrate-maniphest-revisions.php
<?php // From 2013-2016, this migration moved revisions attached to tasks to edges.
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/.php-cs-fixer.dist.php
.php-cs-fixer.dist.php
<?php $finder = (new PhpCsFixer\Finder()) ->in(__DIR__ . '/src') ->in(__DIR__ . '/recipe') ->in(__DIR__ . '/contrib') ->in(__DIR__ . '/tests'); return (new PhpCsFixer\Config()) ->setRules([ '@PER-CS' => true, // Due to historical reasons we have to keep this. // Docs parse...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/provision.php
recipe/provision.php
<?php namespace Deployer; require __DIR__ . '/provision/databases.php'; require __DIR__ . '/provision/nodejs.php'; require __DIR__ . '/provision/php.php'; require __DIR__ . '/provision/user.php'; require __DIR__ . '/provision/website.php'; use Deployer\Task\Context; use function Deployer\Support\parse_home_dir; ad...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/sulu.php
recipe/sulu.php
<?php namespace Deployer; require_once __DIR__ . '/symfony.php'; add('recipes', ['sulu']); add('shared_dirs', ['var/indexes', 'var/sitemaps', 'var/uploads', 'public/uploads']); add('writable_dirs', ['public/uploads']); set('bin/websiteconsole', function () { return parse('{{bin/php}} {{release_or_current_path...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/drupal8.php
recipe/drupal8.php
<?php namespace Deployer; require_once __DIR__ . '/common.php'; add('recipes', ['drupal8']); task('deploy', [ 'deploy:prepare', 'deploy:publish', ]); //Set drupal site. Change if you use different site set('drupal_site', 'default'); //Drupal 8 shared dirs set('shared_dirs', [ 'sites/{{drupal_site}}/f...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/prestashop.php
recipe/prestashop.php
<?php namespace Deployer; require_once __DIR__ . '/common.php'; add('recipes', ['prestashop']); set('shared_files', [ 'config/settings.inc.php', '.htaccess', ]); set('shared_dirs', [ 'img', 'log', 'download', 'upload', 'translations', 'mails', 'themes/default-bootstrap/lang', ...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/silverstripe.php
recipe/silverstripe.php
<?php namespace Deployer; require_once __DIR__ . '/common.php'; add('recipes', ['silverstripe']); /** * Silverstripe configuration */ set('shared_assets', function () { if (test('[ -d {{release_or_current_path}}/public ]') || test('[ -d {{deploy_path}}/shared/public ]')) { return 'public/assets'; ...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/joomla.php
recipe/joomla.php
<?php namespace Deployer; require_once __DIR__ . '/common.php'; add('recipes', ['joomla']); set('shared_files', ['configuration.php']); set('shared_dirs', ['images']); set('writable_dirs', ['images']); desc('Deploys your project'); task('deploy', [ 'deploy:prepare', 'deploy:publish', ]);
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/fuelphp.php
recipe/fuelphp.php
<?php namespace Deployer; require_once __DIR__ . '/common.php'; add('recipes', ['fuelphp']); // FuelPHP 1.x shared dirs set('shared_dirs', [ 'fuel/app/cache', 'fuel/app/logs', ]); /** * Main task */ desc('Deploys your project'); task('deploy', [ 'deploy:prepare', 'deploy:vendors', 'deploy:publish...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/spiral.php
recipe/spiral.php
<?php namespace Deployer; require_once __DIR__ . '/common.php'; add('recipes', ['spiral']); // Spiral shared dirs set('shared_dirs', ['runtime']); // Spiral writable dirs set('writable_dirs', ['runtime', 'public']); // Path to the RoadRunner server set('roadrunner_path', '{{release_or_current_path}}'); set('dote...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/laravel.php
recipe/laravel.php
<?php namespace Deployer; require_once __DIR__ . '/common.php'; add('recipes', ['laravel']); set('shared_dirs', ['storage']); set('shared_files', ['.env']); set('writable_dirs', [ 'bootstrap/cache', 'storage', 'storage/app', 'storage/app/public', 'storage/app/private', 'storage/framework', ...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/magento2.php
recipe/magento2.php
<?php namespace Deployer; require_once __DIR__ . '/common.php'; require_once __DIR__ . '/../contrib/cachetool.php'; use Deployer\Exception\ConfigurationException; use Deployer\Exception\GracefulShutdownException; use Deployer\Exception\RunException; use Deployer\Host\Host; const CONFIG_IMPORT_NEEDED_EXIT_CODE = 2; ...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/typo3.php
recipe/typo3.php
<?php /** * TYPO3 Deployer Recipe * * Usage Examples: * * Deploy to production (using Git as source): * vendor/bin/dep deploy production * * Deploy to staging using rsync: * # In deploy.php or servers config, enable rsync * set('use_rsync', true); * vendor/bin/dep deploy staging * * Common...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/common.php
recipe/common.php
<?php namespace Deployer; require __DIR__ . '/provision.php'; require __DIR__ . '/deploy/check_remote.php'; require __DIR__ . '/deploy/cleanup.php'; require __DIR__ . '/deploy/clear_paths.php'; require __DIR__ . '/deploy/copy_dirs.php'; require __DIR__ . '/deploy/env.php'; require __DIR__ . '/deploy/info.php'; requir...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/composer.php
recipe/composer.php
<?php namespace Deployer; require_once __DIR__ . '/common.php'; add('recipes', ['composer']); desc('Deploys your project'); task('deploy', [ 'deploy:prepare', 'deploy:vendors', 'deploy:publish', ]);
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/codeigniter4.php
recipe/codeigniter4.php
<?php namespace Deployer; require_once __DIR__ . '/common.php'; add('recipes', ['codeigniter4']); // Default Configurations set('public_path', 'public'); set('shared_dirs', ['writable']); set('shared_files', ['.env']); set('writable_dirs', [ 'writable/cache', 'writable/debugbar', 'writable/logs', ...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/drupal7.php
recipe/drupal7.php
<?php namespace Deployer; require_once __DIR__ . '/common.php'; add('recipes', ['drupal7']); task('deploy', [ 'deploy:prepare', 'deploy:publish', ]); //Set Drupal 7 site. Change if you use different site set('drupal_site', 'default'); //Drupal 7 shared dirs set('shared_dirs', [ 'sites/{{drupal_site}}/...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/pimcore.php
recipe/pimcore.php
<?php namespace Deployer; require_once __DIR__ . '/symfony.php'; add('recipes', ['pimcore']); add('shared_dirs', ['public/var', 'var/email', 'var/recyclebin', 'var/versions']); add('shared_files', ['config/local/database.yaml']); add('writable_dirs', ['public/var', 'var/cache/dev']); desc('Rebuilds Pimcore Class...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/shopware.php
recipe/shopware.php
<?php /** * ## Usage * * Add `repository` to your _deploy.php_ file: * * ```php * set('repository', 'git@github.com:shopware/production.git'); * ``` * * configure host: * ```php * host('SSH-HOSTNAME') * ->set('remote_user', 'SSH-USER') * ->set('deploy_path', '/var/www/shopware') // This is the path...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/yii.php
recipe/yii.php
<?php namespace Deployer; require_once __DIR__ . '/common.php'; add('recipes', ['yii']); // Yii shared dirs set('shared_dirs', ['runtime']); // Yii writable dirs set('writable_dirs', ['runtime']); desc('Runs Yii2 migrations for your project'); task('deploy:migrate', function () { run('cd {{release_or_current_...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/craftcms.php
recipe/craftcms.php
<?php namespace Deployer; require_once __DIR__ . '/common.php'; add('recipes', ['craftcms']); set('log_files', 'storage/logs/*.log'); set('shared_dirs', [ 'storage', 'web/assets', ]); set('shared_files', ['.env']); set('writable_dirs', [ 'config/project', 'storage', 'web/assets', 'web/cpr...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/statamic.php
recipe/statamic.php
<?php namespace Deployer; /* * As Statamic is a Laravel Package, we will extend the Laravel * recipe and simply add Statamic specific commands. */ require_once __DIR__ . '/laravel.php'; add('recipes', ['statamic']); add('writable_dirs', [ 'storage/statamic', ]); set('statamic_version', function () { $res...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/symfony.php
recipe/symfony.php
<?php namespace Deployer; require_once __DIR__ . '/common.php'; add('recipes', ['symfony']); set('symfony_version', function () { $result = run('{{bin/console}} --version'); preg_match_all('/(\d+\.?)+/', $result, $matches); return $matches[0][0] ?? 5.0; }); set('shared_dirs', [ 'var/log', ]); set(...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/zend_framework.php
recipe/zend_framework.php
<?php namespace Deployer; require_once __DIR__ . '/common.php'; add('recipes', ['zend_framework']); /** * Main task */ desc('Deploys your project'); task('deploy', [ 'deploy:prepare', 'deploy:vendors', 'deploy:publish', ]);
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/wordpress.php
recipe/wordpress.php
<?php namespace Deployer; require_once __DIR__ . '/common.php'; add('recipes', ['wordpress']); set('shared_files', ['wp-config.php']); set('shared_dirs', ['wp-content/uploads']); set('writable_dirs', ['wp-content/uploads']); desc('Deploys your project'); task('deploy', [ 'deploy:prepare', 'deploy:publish',...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/magento.php
recipe/magento.php
<?php namespace Deployer; require_once __DIR__ . '/common.php'; add('recipes', ['magento']); /** * Magento Configuration */ // Magento shared dirs set('shared_dirs', ['var', 'media']); // Magento shared files set('shared_files', ['app/etc/local.xml']); // Magento writable dirs set('writable_dirs', ['var', 'med...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/cakephp.php
recipe/cakephp.php
<?php namespace Deployer; require_once __DIR__ . '/common.php'; add('recipes', ['cakephp']); /** * CakePHP 4 Project Template configuration */ // CakePHP 4 Project Template shared dirs set('shared_dirs', [ 'logs', 'tmp', ]); // CakePHP 4 Project Template shared files set('shared_files', [ 'config/.e...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/codeigniter.php
recipe/codeigniter.php
<?php namespace Deployer; require_once __DIR__ . '/common.php'; add('recipes', ['codeigniter']); // CodeIgniter shared dirs set('shared_dirs', ['application/cache', 'application/logs']); // CodeIgniter writable dirs set('writable_dirs', ['application/cache', 'application/logs']); /** * Main task */ desc('Deploy...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/flow_framework.php
recipe/flow_framework.php
<?php namespace Deployer; require_once __DIR__ . '/common.php'; add('recipes', ['flow_framework']); // Flow-Framework application-context set('flow_context', 'Production'); // Flow-Framework cli-command set('flow_command', 'flow'); // Flow-Framework shared directories set('shared_dirs', [ 'Data/Persistent', ...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/contao.php
recipe/contao.php
<?php namespace Deployer; require_once __DIR__ . '/symfony.php'; add('recipes', ['contao']); // The public path is the path to be set as DocumentRoot and is defined in the `composer.json` of the project // but defaults to `public` from Contao 5.0 on. // This path is relative from the {{current_path}}, see [`recipe/...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/deploy/release.php
recipe/deploy/release.php
<?php namespace Deployer; use Deployer\Exception\Exception; use Symfony\Component\Console\Helper\Table; use function Deployer\Support\escape_shell_argument; // The name of the release. set('release_name', function () { return within('{{deploy_path}}', function () { $latest = run('cat .dep/latest_release...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/deploy/shared.php
recipe/deploy/shared.php
<?php namespace Deployer; use Deployer\Exception\Exception; use Symfony\Component\Console\Output\OutputInterface; // List of dirs what will be shared between releases. // Each release will have symlink to those dirs stored in {{deploy_path}}/shared dir. // ```php // set('shared_dirs', ['storage']); // ``` set('share...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/deploy/env.php
recipe/deploy/env.php
<?php namespace Deployer; set('dotenv_example', '.env.example'); desc('Configure .env file'); task('deploy:env', function () { cd('{{release_or_current_path}}'); if (test('[ ! -e .env ] && [ -f {{dotenv_example}} ]')) { run('cp {{dotenv_example}} .env'); } });
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/deploy/update_code.php
recipe/deploy/update_code.php
<?php namespace Deployer; use Deployer\Exception\ConfigurationException; use Symfony\Component\Console\Input\InputOption; /** * Determines which branch to deploy. Can be overridden with CLI option `--branch`. * If not specified, will get current git HEAD branch as default branch to deploy. */ set('branch', 'HEAD'...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/deploy/rollback.php
recipe/deploy/rollback.php
<?php namespace Deployer; use Deployer\Exception\Exception; /* * Rollback candidate will be automatically chosen by looking * at output of `ls` command and content of `.dep/releases_log`. * * If rollback candidate is marked as **BAD_RELEASE**, it will be skipped. * * :::tip * You can override rollback candida...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/deploy/clear_paths.php
recipe/deploy/clear_paths.php
<?php namespace Deployer; // List of paths to remove from {{release_path}}. set('clear_paths', []); // Use sudo for deploy:clear_path task? set('clear_use_sudo', false); desc('Cleanup files and/or directories'); task('deploy:clear_paths', function () { $paths = get('clear_paths'); $sudo = get('clear_use_sud...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/deploy/cleanup.php
recipe/deploy/cleanup.php
<?php namespace Deployer; // Use sudo in deploy:cleanup task for rm command. set('cleanup_use_sudo', false); desc('Cleanup old releases'); task('deploy:cleanup', function () { $releases = get('releases_list'); $keep = get('keep_releases'); $sudo = get('cleanup_use_sudo') ? 'sudo' : ''; run("cd {{dep...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/deploy/setup.php
recipe/deploy/setup.php
<?php namespace Deployer; desc('Prepares host for deploy'); task('deploy:setup', function () { run( <<<EOF [ -d {{deploy_path}} ] || mkdir -p {{deploy_path}}; cd {{deploy_path}}; [ -d .dep ] || mkdir .dep; [ -d releases ] || mkdir releases; [ -d ...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/deploy/copy_dirs.php
recipe/deploy/copy_dirs.php
<?php namespace Deployer; // List of dirs to copy between releases. // For example you can copy `node_modules` to speedup npm install. set('copy_dirs', []); desc('Copies directories'); task('deploy:copy_dirs', function () { if (has('previous_release')) { foreach (get('copy_dirs') as $dir) { /...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/deploy/lock.php
recipe/deploy/lock.php
<?php namespace Deployer; use Deployer\Exception\GracefulShutdownException; desc('Locks deploy'); task('deploy:lock', function () { $user = escapeshellarg(get('user')); $locked = run("[ -f {{deploy_path}}/.dep/deploy.lock ] && echo +locked || echo $user > {{deploy_path}}/.dep/deploy.lock"); if ($locked =...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/deploy/push.php
recipe/deploy/push.php
<?php namespace Deployer; // Creates patch of local changes and pushes them on host. // And applies to current_path. Push can be done many times. // The task purpose to be used only for development. desc('Pushes local changes to remote host'); task('push', function () { $files = explode("\n", runLocally("git diff...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/deploy/writable.php
recipe/deploy/writable.php
<?php namespace Deployer; // Used to make a writable directory by a server. // Used in `chown` and `acl` modes of {{writable_mode}}. // Attempts automatically to detect http user in process list. set('http_user', function () { $candidates = explode("\n", run("ps axo comm,user | grep -E '[a]pache|[h]ttpd|[_]www|[...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/deploy/symlink.php
recipe/deploy/symlink.php
<?php namespace Deployer; // Use mv -T if available. Will check automatically. set('use_atomic_symlink', function () { return commandSupportsOption('mv', '--no-target-directory'); }); desc('Creates symlink to release'); task('deploy:symlink', function () { if (get('use_atomic_symlink')) { run("mv -T ...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/deploy/vendors.php
recipe/deploy/vendors.php
<?php namespace Deployer; set('composer_action', 'install'); set('composer_options', '--verbose --prefer-dist --no-progress --no-interaction --no-dev --optimize-autoloader'); // Returns Composer binary path in found. Otherwise try to install latest // composer version to `.dep/composer.phar`. To use specific compos...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/deploy/info.php
recipe/deploy/info.php
<?php namespace Deployer; // Defines "what" text for the 'deploy:info' task. // Uses one of the following sources: // 1. Repository name // 2. Application name set('what', function () { $repo = get('repository'); if (!empty($repo)) { return preg_replace('/\.git$/', '', basename($repo)); } $app...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/deploy/check_remote.php
recipe/deploy/check_remote.php
<?php namespace Deployer; use Deployer\Exception\Exception; use Deployer\Exception\GracefulShutdownException; // Cancel deployment if there would be no change to the codebase. // This avoids unnecessary releases if the latest commit has already been deployed. desc('Checks remote head'); task('deploy:check_remote', f...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/provision/php.php
recipe/provision/php.php
<?php namespace Deployer; set('php_version', function () { $defaultPhpVersion = file_exists('composer.json') ? explode('|', preg_replace('/[^0-9.|]+/', '', json_decode(file_get_contents('composer.json'), true)['require']['php'] ?? '8.3'))[0] : '8.3'; if (count(($parts = explode('.', $defaultP...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/provision/databases.php
recipe/provision/databases.php
<?php namespace Deployer; set('db_type', function () { $supportedDbTypes = [ 'none', 'mysql', 'mariadb', 'postgresql', ]; return askChoice(' What DB to install? ', $supportedDbTypes, 0); }); set('db_name', function () { return ask(' DB name: ', 'prod'); }); set('db_us...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/provision/user.php
recipe/provision/user.php
<?php namespace Deployer; use function Deployer\Support\parse_home_dir; set('sudo_password', function () { return askHiddenResponse(' Password for sudo: '); }); desc('Setups a deployer user'); task('provision:user', function () { set('remote_user', get('provision_user')); if (test('id deployer >/dev/n...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/provision/website.php
recipe/provision/website.php
<?php declare(strict_types=1); namespace Deployer; set('domain', function () { return ask(' Domain: ', get('hostname')); }); set('public_path', function () { return ask(' Public path: ', 'public'); }); desc('Configures a server'); task('provision:server', function () { set('remote_user', get('provision...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/recipe/provision/nodejs.php
recipe/provision/nodejs.php
<?php namespace Deployer; use function Deployer\Support\escape_shell_argument; set('node_version', '23.x'); desc('Installs npm packages'); task('provision:node', function () { set('remote_user', get('provision_user')); if (has('nodejs_version')) { throw new \RuntimeException('nodejs_version is depr...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/rabbit.php
contrib/rabbit.php
<?php /* ### Installing ```php // deploy.php require 'recipe/rabbit.php'; ``` ### Configuration options - **rabbit** *(required)*: accepts an *array* with the connection information to [rabbitmq](http://www.rabbitmq.com) server token and team name. You can provide also other configuration options: - *host* - de...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/cimonitor.php
contrib/cimonitor.php
<?php /* Monitor your deployments on [CIMonitor](https://github.com/CIMonitor/CIMonitor). ![CIMonitorGif](https://www.steefmin.xyz/deployer-example.gif) Add tasks on deploy: ```php before('deploy', 'cimonitor:notify'); after('deploy:success', 'cimonitor:notify:success'); after('deploy:failed', 'cimonitor:notify:fai...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/yammer.php
contrib/yammer.php
<?php /* Add hook on deploy: ```php before('deploy', 'yammer:notify'); ``` ## Configuration - `yammer_url` – The URL to the message endpoint, default is https://www.yammer.com/api/v1/messages.json - `yammer_token` *(required)* – Yammer auth token - `yammer_group_id` *(required)* - Group ID - `yammer_title` – the ti...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/bugsnag.php
contrib/bugsnag.php
<?php /* ## Configuration - *bugsnag_api_key* – the API Key associated with the project. Informs Bugsnag which project has been deployed. This is the only required field. - *bugsnag_provider* – the name of your source control provider. Required when repository is supplied and only for on-premise services. - *bugsnag_...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/php-fpm.php
contrib/php-fpm.php
<?php /* :::caution Do **not** reload php-fpm. Some user requests could fail or not complete in the process of reloading. Instead, configure your server [properly](avoid-php-fpm-reloading). If you're using Deployer's provision recipe, it's already configured the right way and no php-fpm reload is needed. ::: ## Conf...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/slack.php
contrib/slack.php
<?php /* ## Installing <a href="https://slack.com/oauth/authorize?&client_id=113734341365.225973502034&scope=incoming-webhook"><img alt="Add to Slack" height="40" width="139" src="https://platform.slack-edge.com/img/add_to_slack.png" srcset="https://platform.slack-edge.com/img/add_to_slack.png 1x, https://platform.sla...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/newrelic.php
contrib/newrelic.php
<?php /* ## Configuration - `newrelic_app_id` – newrelic's app id - `newrelic_api_key` – newrelic's api key - `newrelic_description` – message to send - `newrelic_endpoint` – newrelic's REST API endpoint ## Usage Since you should only notify New Relic of a successful deployment, the `newrelic:notify` task should be ...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/rocketchat.php
contrib/rocketchat.php
<?php /* ## Installing Create a RocketChat incoming webhook, through the administration panel. Add hook on deploy: ``` before('deploy', 'rocketchat:notify'); ``` ## Configuration - `rocketchat_webhook` - incoming rocketchat webook **required** ``` set('rocketchat_webhook', 'https://rocketchat.yourcompany.co...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/sentry.php
contrib/sentry.php
<?php /* ### Configuration options - **organization** *(required)*: the slug of the organization the release belongs to. - **projects** *(required)*: array of slugs of the projects to create a release for. - **token** *(required)*: authentication token. Can be created at [https://sentry.io/settings/account/api/auth-t...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/discord.php
contrib/discord.php
<?php /* ## Installing Add hook on deploy: ```php before('deploy', 'discord:notify'); ``` ## Configuration - `discord_channel` – Discord channel ID, **required** - `discord_token` – Discord channel token, **required** - `discord_notify_text` – notification message template, markdown supported, default: ```markdo...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/mattermost.php
contrib/mattermost.php
<?php /* ## Installing Create a Mattermost incoming webhook, through the administration panel. Add hook on deploy: ``` before('deploy', 'mattermost:notify'); ``` ## Configuration - `mattermost_webhook` - incoming mattermost webook **required** ``` set('mattermost_webook', 'https://{your-mattermost-site}/hoo...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/webpack_encore.php
contrib/webpack_encore.php
<?php /* ## Configuration - **webpack_encore/package_manager** *(optional)*: set yarn or npm. We try to find if yarn or npm is available and used. ## Usage ```php // For Yarn after('deploy:update_code', 'yarn:install'); // For npm after('deploy:update_code', 'npm:install'); after('deploy:update_code', 'webpack_enc...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/rollbar.php
contrib/rollbar.php
<?php /* ## Configuration - `rollbar_token` – access token to rollbar api - `rollbar_comment` – comment about deploy, default to ```php set('rollbar_comment', '_{{user}}_ deploying `{{what}}` to *{{where}}*'); ``` - `rollbar_username` – rollbar user name ## Usage Since you should only notify Rollbar channel o...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/chatwork.php
contrib/chatwork.php
<?php /* # Chatwork Recipe ## Installing 1. Create chatwork account by any manual in the internet 2. Take chatwork token (Like: b29a700e2d15bef3f26ae6a5c142d1ea) and set `chatwork_token` parameter 3. Take chatwork room id from url after clicked on the room, and set `chatwork_room_id` parameter 4. If you want, ...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/cpanel.php
contrib/cpanel.php
<?php /* ### Description This is a recipe that uses the [cPanel 2 API](https://documentation.cPanel.net/display/DD/Guide+to+cPanel+API+2). Unfortunately the [UAPI](https://documentation.cPanel.net/display/DD/Guide+to+UAPI) that is recommended does not have support for creating addon domains. The main idea behind is fo...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/grafana.php
contrib/grafana.php
<?php /* ## Configuration options - **url** *(required)*: the URL to the creates annotation api endpoint. - **token** *(required)*: authentication token. Can be created at Grafana Console. - **time** *(optional)* – set deploy time of annotation. specify epoch milliseconds. (Defaults is set to the current time in epoc...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/phinx.php
contrib/phinx.php
<?php /* ## Configuration options All options are in the config parameter `phinx` specified as an array (instead of the `phinx_path` variable). All parameters are *optional*, but you can specify them with a dictionary (to change all parameters) or by deployer dot notation (to change one option). ### Phinx params - ...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/ms-teams.php
contrib/ms-teams.php
<?php /* ## Installing Require ms-teams recipe in your `deploy.php` file: Setup: 1. Open MS Teams 2. Navigate to Teams section 3. Select existing or create new team 4. Select existing or create new channel 5. Hover over channel to get three dots, click, in menu select "Connectors" 6. Search for and configure "Incomin...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/hangouts.php
contrib/hangouts.php
<?php /* Add hook on deploy: ```php before('deploy', 'chat:notify'); ``` ## Configuration - `chat_webhook` – chat incoming webhook url, **required** - `chat_title` – the title of your notification card, default `{{application}}` - `chat_subtitle` – the subtitle of your card, default `{{hostname}}` - `chat_favicon` ...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/supervisord-monitor.php
contrib/supervisord-monitor.php
<?php /* ### Description This is a recipe that uses the [Supervisord server monitoring project](https://github.com/mlazarov/supervisord-monitor). With this recipe the possibility is created to restart a supervisord process through the Supervisor Monitor webtool, by using cURL. This workaround is particular usefull whe...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/npm.php
contrib/npm.php
<?php /* ## Configuration - `bin/npm` *(optional)*: set npm binary, automatically detected otherwise. ## Usage ```php after('deploy:update_code', 'npm:install'); ``` */ namespace Deployer; set('bin/npm', function () { return which('npm'); }); // Uses `npm ci` command. This command is similar to npm install,...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/ispmanager.php
contrib/ispmanager.php
<?php /* * This recipe for work with ISPManager Lite panel by API. */ namespace Deployer; use Deployer\Exception\Exception; use Deployer\Utility\Httpie; set('ispmanager_owner', 'www-root'); set('ispmanager_doc_root', '/var/www/' . get('ispmanager_owner') . '/data/'); // ISPManager default configuration set('ispma...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/telegram.php
contrib/telegram.php
<?php /* ## Installing 1. Create telegram bot with [BotFather](https://t.me/BotFather) and grab the token provided 2. Send `/start` to your bot and open https://api.telegram.org/bot{$TELEGRAM_TOKEN_HERE}/getUpdates 3. Take chat_id from response Add hook on deploy: ```php before('deploy', 'telegram:notify'); ``...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/crontab.php
contrib/crontab.php
<?php /* Recipe for adding crontab jobs. This recipe creates a new section in the crontab file with the configured jobs. The section is identified by the *crontab:identifier* variable, by default the application name. ## Configuration - *crontab:jobs* - An array of strings with crontab lines. ## Usage ```php requi...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/cachetool.php
contrib/cachetool.php
<?php /* ## Configuration - **cachetool** *(optional)*: accepts a *string* or an *array* of strings with the unix socket or ip address to php-fpm. If `cachetool` is not given, then the application will look for a configuration file. The file must be named .cachetool.yml or .cachetool.yaml. CacheTool will look for thi...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/workplace.php
contrib/workplace.php
<?php /* This recipes works with Custom Integrations and Publishing Bots. Add hook on deploy: ``` before('deploy', 'workplace:notify'); ``` ## Configuration - `workplace_webhook` - incoming workplace webhook **required** ``` // With custom integration set('workplace_webhook', 'https://graph.facebook.com/...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/raygun.php
contrib/raygun.php
<?php /* ## Configuration - `raygun_api_key` – the API key of your Raygun application - `raygun_version` – the version of your application that this deployment is releasing - `raygun_owner_name` – the name of the person creating this deployment - `raygun_email` – the email of the person creating this deployment - `ra...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/rsync.php
contrib/rsync.php
<?php /* :::warning This must not be confused with `/src/Utility/Rsync.php`, deployer's built-in rsync. Their configuration options are also very different, read carefully below. ::: ## Configuration options - **rsync**: Accepts an array with following rsync options (all are optional and defaults are ok): - *excl...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/ntfy.php
contrib/ntfy.php
<?php /* ## Installing Require ntfy.sh recipe in your `deploy.php` file: Setup: 1. Setup deploy.php Add in header: ```php require 'contrib/ntfy.php'; set('ntfy_topic', 'ntfy.sh/mytopic'); ``` Add in content: ```php before('deploy', 'ntfy:notify'); after('deploy:success', 'ntfy:notify:success'); after('deploy:fail...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/directadmin.php
contrib/directadmin.php
<?php /* ### Configuration - `directadmin` – array with configuration for DirectAdmin - `host` – DirectAdmin host - `port` – DirectAdmin port (default: 2222, not required) - `scheme` – DirectAdmin scheme (default: http, not required) - `username` – DirectAdmin username - `password` – DirectAdmin pas...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/hipchat.php
contrib/hipchat.php
<?php /* ## Configuration - `hipchat_token` – Hipchat V1 auth token - `hipchat_room_id` – Room ID or name - `hipchat_message` – Deploy message, default is `_{{user}}_ deploying `{{what}}` to *{{where}}*` - `hipchat_from` – Default to target - `hipchat_color` – Message color, default is **green** - `hipchat_url` – Th...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/cloudflare.php
contrib/cloudflare.php
<?php /* ### Configuration - `cloudflare` – array with configuration for cloudflare - `service_key` – Cloudflare Service Key. If this is not provided, use api_key and email. - `api_key` – Cloudflare API key generated on the "My Account" page. - `email` – Cloudflare Email address associated with your accou...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/contrib/yarn.php
contrib/yarn.php
<?php /* ## Configuration - **bin/yarn** *(optional)*: set Yarn binary, automatically detected otherwise. ## Usage ```php after('deploy:update_code', 'yarn:install'); ``` */ namespace Deployer; set('bin/yarn', function () { return which('yarn'); }); // In there is a {{previous_release}}, node_modules will be...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/src/functions.php
src/functions.php
<?php declare(strict_types=1); /* (c) Anton Medvedev <anton@medv.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Deployer; use Deployer\Exception\Exception; use Deployer\Exception\GracefulShutdownException; use Deplo...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/src/Configuration.php
src/Configuration.php
<?php declare(strict_types=1); /* (c) Anton Medvedev <anton@medv.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Deployer; use Deployer\Exception\ConfigurationException; use Deployer\Utility\Httpie; use function Dep...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/src/Deployer.php
src/Deployer.php
<?php declare(strict_types=1); /* (c) Anton Medvedev <anton@medv.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Deployer; use Deployer\Collection\Collection; use Deployer\Command\BlackjackCommand; use Deployer\Comma...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/src/Executor/Response.php
src/Executor/Response.php
<?php declare(strict_types=1); /* (c) Anton Medvedev <anton@medv.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Deployer\Executor; class Response { private int $status; private mixed $body; public funct...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/src/Executor/Messenger.php
src/Executor/Messenger.php
<?php declare(strict_types=1); /* (c) Anton Medvedev <anton@medv.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Deployer\Executor; use Deployer\Exception\Exception; use Deployer\Exception\RunException; use Deployer\...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false
deployphp/deployer
https://github.com/deployphp/deployer/blob/815419f1c95c4316609d73e6f1b1efd682d73430/src/Executor/Planner.php
src/Executor/Planner.php
<?php declare(strict_types=1); /* (c) Anton Medvedev <anton@medv.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Deployer\Executor; use Deployer\Host\Host; use Deployer\Task\Task; use Symfony\Component\Console\Helper...
php
MIT
815419f1c95c4316609d73e6f1b1efd682d73430
2026-01-04T15:05:41.290405Z
false