Capistrano::Wordpress::Permissions
Changes the app owner to the Wordpress user. Fixes issues where the Wordpress user does not have enough permissions to install or update plugins.
Installation
Add this line to your application's Gemfile:
gem 'capistrano-wordpress-permissions'
And then execute:
$ bundle
Or install it yourself as:
$ gem install capistrano-wordpress
Usage
Add the following lines inside your Capfile:
require 'capistrano/wordpress/permissions'
install_plugin Capistrano::Wordpress::Permissions
This plugin needs to fetch the deployment user. It is thereby necessary to set it in your configuration file(s):
set :user, '[REPLACE_WITH_DEPLOYMENT_USER]'
By default, this plugin use the wordpress user "www-data". It is possible to change this user in your configuration file(s):
set :wordpress_user, '[YOUR_WORDPRESS_USER]'
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
License
The gem is available as open source under the terms of the MIT License.