lib/capistrano/tasks/wp/setup.cap in capistrano-cul-0.3.0 vs lib/capistrano/tasks/wp/setup.cap in capistrano-cul-0.3.1
- old
+ new
@@ -14,27 +14,22 @@
within(deploy_path) do
# Destroy and recreate the docroot
execute :rm, '-rf', fetch(:wp_docroot), '&&', 'mkdir', fetch(:wp_docroot)
- # Create nginx logs directory if it doesn't already exist
- execute :mkdir, '-p', deploy_path.join('logs')
-
# Download and unpack latest version of WP to wp_docroot
execute :wp, 'core', ['download', "--version=latest", "--path=#{fetch(:wp_docroot)}"]
# Create a limited-content wp-config.php file that requires our shared
# wp-config-include.php file. We do this so that wordpress still has a
# wp-config.php file at the expected location, and that file correctly
# sets the ABSPATH constant based on the wp-config.php file location.
# Our limited-content wp-config file will only contain the following:
# ----------------------------------------------------------
- # require dirname(__DIR__) . '/conf/the-real-conf.php';
+ # require dirname(__DIR__) . '/shared/wp-config-include.php';
#
- #/* That's all, stop editing! Happy blogging. */
- #
#/** WordPress absolute path to the Wordpress directory. */
#if ( !defined('ABSPATH') )
# define('ABSPATH', dirname(__FILE__) . '/');
#
#/** Sets up WordPress vars and included files. */
@@ -44,11 +39,9 @@
execute :echo, '-e', '"' +
"<?php" +
'\\n' +
"require dirname(__DIR__) . '/shared/wp-config-include.php';" +
'\\n\\n' +
- "/* That's all, stop editing! Happy blogging. */" +
- '\\n' +
"/** WordPress absolute path to the Wordpress directory. */" +
'\\n' +
"if ( !defined('ABSPATH') ) { define('ABSPATH', dirname(__FILE__) . '/'); }" +
'\\n\\n' +
"/** Sets up WordPress vars and included files. */" +