No commit activity in last 3 years
No release in over 3 years
Changes the releases' owner to the Wordpress user. Fixes issues where the Wordpress user does not have enough permissions to install or update plugins.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0

Runtime

 Project Readme

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

  1. Fork the repository
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

License

The gem is available as open source under the terms of the MIT License.