Forum Replies Created
-
AuthorPosts
-
Layer7webKeymasterTo not have to enter a password when using
PHP1Vagrant upChange the permissions using this on a Mac:
PHP1sudo chmod +a "$USER allow write,append" /etc/hostsThis was needed when Jenkins was running. It would hang on this otherwise.
Layer7webKeymasterIssue:
When I had installed NPM on my mac it installed into the /Users/{username}/… etc folder. This made it so when I installed Gulp globally it was not available and always gave me the “Command not found” error. After an hour of googling, I was able to work it out.After running:
npm prefix -gThe out put should be: /user/local
If it is /Users/{username]/… etc then change it.
Changed the npm install folder to this:
npm config set prefix /usr/localand re-installed Gulp globally.
npm install -g gulpand Gulp-CLI globaly.
npm install -g gulp-cliand it works!
Layer7webKeymasterA recent update has removed all white space in the code output. This prevents line breaks and paragraph breaks from being inserted by WordPress. This is no longer an issue.
Layer7webKeymasterTo use the same config file for different environments I have been using this a lot these days:
PHP1234567891011121314151617181920212223if(strpos($_SERVER['HTTP_HOST'], 'local') === false){define('DB_NAME', 'database_name');define('DB_USER', 'username');define('DB_PASSWORD', 'password');define('WP_DEBUG', false);/** WP Memory Limit */define('WP_MEMORY_LIMIT', '1024M');/** Limit number of post revisions */define( 'WP_POST_REVISIONS', 5);/** Turn Off PHP Error Reporting */error_reporting(0);@ini_set(‘display_errors’, 0);}if(strpos($_SERVER['HTTP_HOST'], 'local') >= 0){define('DB_NAME', 'database_name');define('DB_USER', 'user_name');define('DB_PASSWORD', 'password');define('WP_DEBUG', true);}Putting development connection settings in the ‘local’ and live settings in the not ‘local’.
-
AuthorPosts