Git Product home page Git Product logo

valet-roots's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

valet-roots's Issues

Feedback

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
  • .env is also the default for file so you can leave that off as well.
  • You could also use this as just 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.