這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

PLX Multi-Environments

外掛說明

PLX Multi-Environments manages separate Development, Staging, and Production environments directly from within the WordPress Admin screen.

Once the separate configuration files have been installed and your existing wp-config.php settings have been backed up
you\’re then free to enter each of your environments database settings. When you push your files between servers you no
longer need to edit the configuration.

Important: Although the plugin will automatically backup your current settings to wp-config.backup.php, we strongly recommend backing up
your wp-config.php file before completing the plugin installation.

螢幕擷圖

  • Initial setup of the environment files
  • Quickly and easily edit your environments

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/plx-multienv directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the \’Plugins\’ screen in WordPress.
  3. After successful activation go to the Settings->Environments screen or click on the Install button that appears at the top of the Admin screen.
  4. Follow the on-screen instructions to install the environment files.
  5. After a successful installation you can enter your Development, Staging, and Production credentials on each tab and then Save Changes.
  6. Copy all of the wp-config.*.php files in the root of your WordPress site to your other environments.

常見問題集

Installation Instructions
  1. Upload the plugin files to the /wp-content/plugins/plx-multienv directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the \’Plugins\’ screen in WordPress.
  3. After successful activation go to the Settings->Environments screen or click on the Install button that appears at the top of the Admin screen.
  4. Follow the on-screen instructions to install the environment files.
  5. After a successful installation you can enter your Development, Staging, and Production credentials on each tab and then Save Changes.
  6. Copy all of the wp-config.*.php files in the root of your WordPress site to your other environments.
I only use a development and production environment, can I still use this plugin?

Yes, the plugin loads the relevant environment based on the current hostname so if you don\’t wish to use all the environments just leave those sections blank.

How can I add custom code to my database configuration without the plugin overwriting it?

There are several ways you can do this:
* Add your code directly in the wp-config.php file, this file is created during the initial installation of the environments and can be safely edited without affecting the plugin, these settings apply globally to all environments.
* Un-install the plugin and directly edit each environment file (wp-config.development.php, wp-config.staging.php, wp-config.production.php). Once the environment files have been created the plugin is only used to edit the files and is not needed for the environments to function correctly.
* Modify the template files found in /wp-content/plugins/plx-multienv/templates, you will also need to edit the version number in /wp-content/plugins/plx-multienv/plx-multienv.php to 999.9.9, this will prevent updates to the plugin that would otherwise overwrite your changes. Please note this method is not recommended as it disables future updates that may fix security vulnerabilities and provide compatibility with future versions of WordPress.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈PLX Multi-Environments〉的開發相關工作。

參與者

將〈PLX Multi-Environments〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

  • Initial release

1.0.1

  • Tested for compatibility with WordPress 4.9
  • Fixed CSS layout issues with tabs in admin screen