Valet switch PHP version with these commands
Install PHP 5.6 and switch Valet to PHP 5.6
valet stop
brew unlink php71
brew install php56
brew install php56-mcrypt
brew link php56
valet start
| # With Sudo | |
| sudo find . -type d -exec chmod 755 {} \; | |
| sudo find . -type f -exec chmod 644 {} \; | |
| sudo chmod 777 -R app/etc/; | |
| sudo chmod 777 -R var/; | |
| sudo chmod 777 -R media/; | |
| # Without Sudo |
| #!/usr/bin/env bash | |
| #styles | |
| VP_NONE='\033[00m' | |
| VP_RED='\033[01;31m' | |
| VP_GREEN='\033[01;32m' | |
| VP_YELLOW='\033[01;33m' | |
| VP_PURPLE='\033[01;35m' | |
| VP_CYAN='\033[01;36m' | |
| VP_WHITE='\033[01;37m' |
| # ================================================ | |
| # PHP 7.2 | |
| # | |
| # See https://www.colinodell.com/blog/201711/installing-php-72 | |
| # ================================================ | |
| apt-get install -y apt-transport-https lsb-release ca-certificates | |
| wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg | |
| echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list | |
| apt-get update | |
| apt-get install -y php7.2-cli php7.2-gd php7.2-mbstring php7.2-curl php7.2-xml php7.2-zip |
| <?xml version="1.0"?> | |
| <!-- | |
| /** | |
| * Copyright © 2013-2017 Magento, Inc. All rights reserved. | |
| * See COPYING.txt for license details. | |
| */ | |
| --> | |
| <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> | |
| <preference for="Psr\Log\LoggerInterface" type="Magento\Framework\Logger\Monolog" /> | |
| <preference for="Magento\Framework\EntityManager\EntityMetadataInterface" type="Magento\Framework\EntityManager\EntityMetadata" /> |
| var gulp = require('gulp'); | |
| var cleanCSS = require('gulp-clean-css'); | |
| var minify = require('gulp-minify'); | |
| gulp.task('default', [ | |
| 'css', | |
| 'requireJsMinify', | |
| 'jsMinify' |
| <?php | |
| /* | |
| * Magento 1 Valet Driver | |
| * @author spinsch | |
| * @path ~/.valet/Drivers/Magento1ValetDriver.php | |
| */ | |
| class Magento1ValetDriver extends ValetDriver | |
| { | |
| /** | |
| * Determine if the driver serves the request. |
| <?php | |
| class Magento1ValetDriver extends ValetDriver | |
| { | |
| /** | |
| * Determine if the driver serves the request. | |
| * | |
| * @param string $sitePath | |
| * @param string $siteName | |
| * @param string $uri |
| <?php | |
| /** | |
| * Laravel Valet Magento 2 Driver | |
| * Originally written bysschlein | |
| * | |
| * Sligthly altered by: | |
| * Kay in 't Veen - Microdesign B.V. | |
| * http://www.microdesign.nl | |
| * |
Valet switch PHP version with these commands
Install PHP 5.6 and switch Valet to PHP 5.6
valet stop
brew unlink php71
brew install php56
brew install php56-mcrypt
brew link php56
valet start
| after "deploy", "deploy:cleanup" | |
| after "deploy:update_code", "composer:install" | |
| before "composer:install", "composer:copy_vendors" | |
| after "composer:install", "phpunit:run_tests" | |
| namespace :composer do | |
| desc "Copy vendors from previous release" | |
| task :copy_vendors, :except => { :no_release => true } do | |
| run "if [ -d #{previous_release}/vendor ]; then cp -a #{previous_release}/vendor #{latest_release}/vendor; fi" | |
| end |