Sha256: 40040d6c3e4f842c5a51e548e305702c2ffc3b20a75e9fcba971c0625bdd815c

Contents?: true

Size: 900 Bytes

Versions: 27

Compression:

Stored size: 900 Bytes

Contents

namespace "wp-capistrano" do
  desc 'Install wordpress'
  task :install_wordpress do
    on roles(:app), filter: :no_release do
          puts "#{shared_path}/wp-config.php exist ?"
          if test("[ -f #{shared_path}/wp-config.php ]") == false
          	execute "php #{fetch(:tmp_dir)}/wp-cli.phar config create --dbname=#{fetch(:wp_db_name)} --dbuser=#{fetch(:wp_db_user)} --dbpass=#{fetch(:wp_db_password)} --dbhost='#{fetch(:wp_db_host)}'  --locale=#{fetch(:wp_locale)} --path=#{release_path}"
          	execute "cp #{release_path}/wp-config.php #{shared_path}/"
          end
          execute "php #{fetch(:tmp_dir)}/wp-cli.phar core install --url='#{fetch(:wp_url)}' --title='#{fetch(:wp_title)}' --admin_user='#{fetch(:wp_admin_user)}' --admin_password='#{fetch(:wp_admin_password)}' --admin_email='#{fetch(:wp_admin_email)}' --skip-email --path=#{release_path}"
        end
    end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
wp-capistrano3-0.0.52 lib/capistrano/tasks/install_wordpress.rake
wp-capistrano3-0.0.51 lib/capistrano/tasks/install_wordpress.rake
wp-capistrano3-0.0.50 lib/capistrano/tasks/install_wordpress.rake
wp-capistrano3-0.0.49 lib/capistrano/tasks/install_wordpress.rake
wp-capistrano3-0.0.48 lib/capistrano/tasks/install_wordpress.rake
wp-capistrano3-0.0.47 lib/capistrano/tasks/install_wordpress.rake
wp-capistrano3-0.0.46 lib/capistrano/tasks/install_wordpress.rake
wp-capistrano3-0.0.45 lib/capistrano/tasks/install_wordpress.rake
wp-capistrano3-0.0.44 lib/capistrano/tasks/install_wordpress.rake
wp-capistrano3-0.0.43 lib/capistrano/tasks/install_wordpress.rake
wp-capistrano3-0.0.42 lib/capistrano/tasks/install_wordpress.rake
wp-capistrano3-0.0.41 lib/capistrano/tasks/install_wordpress.rake
wp-capistrano3-0.0.40 lib/capistrano/tasks/install_wordpress.rake
wp-capistrano3-0.0.39 lib/capistrano/tasks/install_wordpress.rake
wp-capistrano3-0.0.38 lib/capistrano/tasks/install_wordpress.rake
wp-capistrano3-0.0.37 lib/capistrano/tasks/install_wordpress.rake
wp-capistrano3-0.0.36 lib/capistrano/tasks/install_wordpress.rake
wp-capistrano3-0.0.35 lib/capistrano/tasks/install_wordpress.rake
wp-capistrano3-0.0.34 lib/capistrano/tasks/install_wordpress.rake
wp-capistrano3-0.0.33 lib/capistrano/tasks/install_wordpress.rake