Giter VIP home page Giter VIP logo

init-local-by-flywheel's Introduction

Init Local by Flywheel

Local by Flywheel(Local) で新規作成した WordPress サイトを初期化、日本語化するスクリプトです。

このスクリプトを実行すると下記の設定が行われます。

  • サイトの言語を 日本語 に設定
  • タイムゾーンを 東京 に設定
  • 日付フォーマットを Y-m-d に設定
  • 時刻フォーマットを H:i に設定
  • パーマリンクを投稿名に設定
  • リライトルールを更新
  • サンプルの投稿、固定ページを削除
  • サンプルのコメントを削除
  • 下記プラグインをインストール
  • WordPress 日本語コアファイルをアップデート

使い方

  1. Local by Flywheel でサイトを新規作成する。
  2. サイトを右クリックして Open Site SSH を開く。
  3. コンソール上で下記コマンドを実行する。
wp eval 'exec(file_get_contents("https://raw.githubusercontent.com/ko31/init-local-by-flywheel/master/command.sh")." > /dev/null", $output); printf("%s\n", implode("\n", $output));'

もし何もプラグインをインストールしたくない時は、下記コマンドに打ち替えてください。

wp eval 'exec(file_get_contents("https://raw.githubusercontent.com/ko31/init-local-by-flywheel/master/command-noplugins.sh")." > /dev/null", $output); printf("%s\n", implode("\n", $output));'

動作環境

以下の環境で動作確認済み。

  • macOS Mojave + Local by Flywheel 3.3.0
  • macOS Mojave + Local 5.3.1
  • macOS Catalina + Local 6.1.2

init-local-by-flywheel's People

Contributors

ko31 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

xxxakiramorixxx

init-local-by-flywheel's Issues

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.