Remove config files from plugin
-
Your production code contains config files from your local machine.
V 2.9.1 contains this gem for example:wp-content/plugins/menu-image/.env.defaultWP_ROOT_FOLDER="/tmp/wp" WP_ADMIN_PATH="/wp-admin" DB_NAME="wordpress" DB_HOST="localhost" DB_USER="travis" DB_PASSWORD="" TABLE_PREFIX="wp_" WP_URL="http://localhost:8080/" WP_DOMAIN="example.com" ADMIN_EMAIL="[email protected]" ADMIN_USERNAME="admin" ADMIN_PASSWORD="password" SERVER_URL="localhost:8080"Please remove the files:
- .env.default
- .gitignore
- .travis.yml
- Gruntfile.js
- composer.json
- composer.lock
- package.json
We don’t need those on production servers. Make sure that /test directory is also needed in a production version.
The topic ‘Remove config files from plugin’ is closed to new replies.