Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Created Mar 23, 2019
Embed
What would you like to do?
# instalar brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# instalar composer si no lo tienes
brew install composer
# instalar php si no lo tienes
brew install php
# instalar valet
composer global require laravel/valet
valet install
# añadir el PATH para ejecutar valet
export PATH=$PATH:~/.composer/vendor/bin
# instalar MySQL si no lo tienes
brew install mysql@5.7
brew services start mysql@5.7
brew link mysql@5.7 --force
# instalar wp-cli
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
php wp-cli.phar --info
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
wp --info
# instalar wp-cli-valet
php -d memory_limit=-1 "$(which wp)" package install git@github.com:aaemnnosttv/wp-cli-valet-command.git
# crear tus nuevos proyectos con un comando
wp valet new <project_name> --locale=es_ES --dbname=<db_name> --dbuser=<db_user> --dbpass=<db_pass> --dbprefix=<dbprefix> --admin_user=<admin_user> --admin_password=<admin_password> --admin_email=<admin_email>
# solo si valet no ha enlazado el sitio correctamente ejecuta lo siguiente dentro del proyecto WordPress
valet link
valet secure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment