/lib/wp-config.php.erb

https://github.com/rounders/wordpress-capistrano · Ruby HTML · 91 lines · 78 code · 13 blank · 0 comment · 8 complexity · d4d2383ab284828c9e91453dc6284a06 MD5 · raw file

  1. <?php
  2. /**
  3. * !!!
  4. * DO NOT EDIT THIS FILE DIRECTLY ON YOUR SERVER
  5. * !!!
  6. *
  7. * Edit it in your wordpress-capistrano repo, commit and push it,
  8. * then run cap wordpress:configure to update it on the server.
  9. *
  10. * The base configurations of the WordPress.
  11. *
  12. * This file has the following configurations: MySQL settings, Table Prefix,
  13. * Secret Keys, WordPress Language, and ABSPATH. You can find more information by
  14. * visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
  15. * wp-config.php} Codex page. You can get the MySQL settings from your web host.
  16. *
  17. * This file is used by the wp-config.php creation script during the
  18. * installation. You don't have to use the web site, you can just copy this file
  19. * to "wp-config.php" and fill in the values.
  20. *
  21. * @package WordPress
  22. */
  23. // ** MySQL settings - You can get this info from your web host ** //
  24. /** The name of the database for WordPress */
  25. define('DB_NAME', '<%= wordpress_db_name %>');
  26. /** MySQL database username */
  27. define('DB_USER', '<%= wordpress_db_user %>');
  28. /** MySQL database password */
  29. define('DB_PASSWORD', '<%= wordpress_db_password %>');
  30. /** MySQL hostname */
  31. define('DB_HOST', '<%= wordpress_db_host %>');
  32. /** Database Charset to use in creating database tables. */
  33. define('DB_CHARSET', 'utf8');
  34. /** The Database Collate type. Don't change this if in doubt. */
  35. define('DB_COLLATE', '');
  36. /** Set Path of your WordPress install if specified in your capfile **/
  37. <% if fetch(:wordpress_home, false) %>
  38. define('WP_HOME', '<%= wordpress_home %>' );
  39. <% end %>
  40. <% if fetch(:wordpress_siteurl, false) %>
  41. define('WP_SITEURL', '<%= wordpress_siteurl %>');
  42. <% end %>
  43. /**#@+
  44. * Authentication Unique Keys.
  45. *
  46. * Change these to different unique phrases!
  47. * You can generate these using the {@link http://api.wordpress.org/secret-key/1.1/ WordPress.org secret-key service}
  48. *
  49. * @since 2.6.0
  50. */
  51. define('AUTH_KEY', '<%= wordpress_auth_key %>');
  52. define('SECURE_AUTH_KEY', '<%= wordpress_secure_auth_key %>');
  53. define('LOGGED_IN_KEY', '<%= wordpress_logged_in_key %>');
  54. define('NONCE_KEY', '<%= wordpress_logged_in_key %>');
  55. /**#@-*/
  56. /**
  57. * WordPress Database Table prefix.
  58. *
  59. * You can have multiple installations in one database if you give each a unique
  60. * prefix. Only numbers, letters, and underscores please!
  61. */
  62. $table_prefix = 'wp_';
  63. /**
  64. * WordPress Localized Language, defaults to English.
  65. *
  66. * Change this to localize WordPress. A corresponding MO file for the chosen
  67. * language must be installed to wp-content/languages. For example, install
  68. * de.mo to wp-content/languages and set WPLANG to 'de' to enable German
  69. * language support.
  70. */
  71. define ('WPLANG', '');
  72. /* That's all, stop editing! Happy blogging. */
  73. /** WordPress absolute path to the Wordpress directory. */
  74. if ( !defined('ABSPATH') )
  75. define('ABSPATH', dirname(__FILE__) . '/');
  76. /** Sets up WordPress vars and included files. */
  77. require_once(ABSPATH . 'wp-settings.php');
  78. ?>