Help us understand the problem. What is going on with this article?

wordpressをgitとcomposerで管理

More than 1 year has passed since last update.

Bedrock(https://github.com/roots/bedrock) が便利そうだったので使ってみる

1. インストール

$ composer create-project roots/bedrock hello_bedrock
$ cd hello_bedrock

2. ディレクトリ構成

.
├── .env
├── .env.example
├── .gitignore
├── CHANGELOG.md
├── CODE_OF_CONDUCT.md
├── LICENSE.md
├── README.md
├── composer.json
├── composer.lock
├── config
│   ├── application.php
│   └── environments
├── vendor
│   ├── autoload.php
│   ├── bin
│   ├── composer
│   ├── johnpbloch
│   ├── oscarotero
│   ├── roots
│   ├── squizlabs
│   └── vlucas
├── web
│   ├── app
│   ├── index.php
│   ├── wp
│   └── wp-config.php
└── wp-cli.yml

3. 環境ファイルを書き換える

DBを作成し、.envに情報を記載

.env
DB_NAME=database_name
DB_USER=database_user
DB_PASSWORD=database_password

WP_HOME=http://localhost:8000

4. ビルトインサーバーの起動

$ php -S localhost:8000 -t web

WordPress_›_Installation.jpg

5. プラグインのインストール

https://wpackagist.org/ にあるものはインストールできる

$ composer require wpackagist-plugin/akismet
Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away