dwillitzer / valet-roots Goto Github PK
View Code? Open in Web Editor NEWValet Install BedRock + Roots
Valet Install BedRock + Roots
Hey there, thanks for the kind words.
I took a look over your script and there are a few things you could change if you wanted.
# set db name
dbname=wp_$sitename
This is unnecessary as it is the default used by the valet command.
wp dotenv salts regenerate --file=.env
file
so you can leave that off as well.generate
now as it will replace salts now if they are placeholder values.# discourage search engines
wp option update blog_public 0
This is unnecessary as Bedrock does this for you with an mu-plugin automatically based on WP_ENV
, but probably not a concern for local dev anyways.
# set pretty urls
wp rewrite structure '/%postname%/' --hard
wp rewrite flush --hard
No need to use --hard
here as these trigger updating a .htaccess
file and thus are Apache-specific.
wp login install --activate
This will install the plugin but if you want it to be part of the project, you can require it with composer:
wp login install --activate
composer require aaemnnosttv/wp-cli-login-server --no-update # add to composer.json but skip install since it is already there.
You could alternatively skip the login install
, and require the package without --no-update
and then wp login toggle on
to activate it. It would take longer, but your composer.lock
would be in sync w/ the composer.json
.
wp theme delete twentyfifteen twentyfourteen twentythirteen twentytwelve twentyeleven twentyten
If you don't want these showing up under Appearance > Themes, you just need to define WP_DEFAULT_THEME
. These are contained within WP core, so they will just be reinstalled again as soon as WP is updated or with a fresh composer install
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.