deployer/recipe/wordpress.php
Stanislav Khromov 0a055bc975 Improve the WordPress recipe (#997)
* 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
2017-02-06 12:01:23 +07:00

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');