mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-23 16:54:08 +01:00
* Improve the WordPress recipe * Configure files commonly shared across deploys (`wp-config.php` and the uploads folder) * Run Composer (many WordPress sites use Composer with WPackagist) * chown file to the web server owner. (Might be platform-dependent, but this is a good default) * Fix whitespace * Fix whitespace, pt. 2 * Use `writable_dirs` option * Remove chown task
30 lines
662 B
PHP
30 lines
662 B
PHP
<?php
|
|
/* (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;
|
|
|
|
require_once __DIR__ . '/common.php';
|
|
|
|
set('shared_files', ['wp-config.php']);
|
|
set('shared_dirs', ['wp-content/uploads']);
|
|
set('writable_dirs', ['wp-content/uploads']);
|
|
|
|
task('deploy', [
|
|
'deploy:prepare',
|
|
'deploy:lock',
|
|
'deploy:release',
|
|
'deploy:update_code',
|
|
'deploy:shared',
|
|
'deploy:vendors',
|
|
'deploy:writable',
|
|
'deploy:symlink',
|
|
'deploy:unlock',
|
|
'cleanup',
|
|
])->desc('Deploy your project');
|
|
|
|
after('deploy', 'success');
|