{"id":20662857,"url":"https://github.com/q23isline/wordpress","last_synced_at":"2025-08-23T03:16:30.571Z","repository":{"id":42389736,"uuid":"232792980","full_name":"q23isline/wordpress","owner":"q23isline","description":"WordPress の動作を確認するためのリポジトリ","archived":false,"fork":false,"pushed_at":"2025-01-11T07:06:21.000Z","size":38151,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-01-11T07:34:10.561Z","etag":null,"topics":["circleci","docker-compose","github-actions","php","phpcodesniffer","wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/q23isline.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-09T11:26:30.000Z","updated_at":"2025-01-11T07:06:24.000Z","dependencies_parsed_at":"2025-01-11T07:42:00.273Z","dependency_job_id":null,"html_url":"https://github.com/q23isline/wordpress","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/q23isline%2Fwordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/q23isline%2Fwordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/q23isline%2Fwordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/q23isline%2Fwordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/q23isline","download_url":"https://codeload.github.com/q23isline/wordpress/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242799117,"owners_count":20186887,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["circleci","docker-compose","github-actions","php","phpcodesniffer","wordpress"],"created_at":"2024-11-16T19:15:41.113Z","updated_at":"2025-07-10T05:36:02.617Z","avatar_url":"https://github.com/q23isline.png","language":"PHP","readme":"# wordpress\n\n[![LICENSE](https://custom-icon-badges.herokuapp.com/badge/license-GPL%202.0-8BB80A.svg?logo=law\u0026logoColor=white)](./license.txt)\n![releases](https://img.shields.io/github/release/q23isline/wordpress.svg?logo=github)\n[![CircleCI](https://img.shields.io/circleci/build/github/q23isline/wordpress/develop.svg?label=CircleCI\u0026logo=circleci)](https://circleci.com/gh/q23isline/wordpress)\n[![GitHub Actions](https://github.com/q23isline/wordpress/actions/workflows/ci.yml/badge.svg)](https://github.com/q23isline/wordpress/actions/workflows/ci.yml)\n[![PHPStan](https://img.shields.io/badge/PHPStan-level%20max-brightgreen.svg)](https://github.com/phpstan/phpstan)\n[![Open in Visual Studio Code](https://img.shields.io/static/v1?logo=visualstudiocode\u0026label=\u0026message=Open%20in%20Visual%20Studio%20Code\u0026labelColor=555555\u0026color=007acc\u0026logoColor=007acc)](https://open.vscode.dev/q23isline/wordpress)\n\n[![PHP](https://img.shields.io/static/v1?logo=php\u0026label=PHP\u0026message=v8.4\u0026labelColor=555555\u0026color=777BB4\u0026logoColor=777BB4)](https://www.php.net)\n[![WordPress](https://img.shields.io/static/v1?logo=wordpress\u0026label=WordPress\u0026message=v6.8.0\u0026labelColor=585C60\u0026color=F4F4F4\u0026logoColor=F4F4F4)](https://ja.wordpress.org/)\n[![MySQL](https://img.shields.io/static/v1?logo=mysql\u0026label=MySQL\u0026message=v8.3\u0026labelColor=555555\u0026color=4479A1\u0026logoColor=4479A1)](https://dev.mysql.com)\n[![NGINX](https://img.shields.io/static/v1?logo=nginx\u0026label=NGINX\u0026message=v1.27\u0026labelColor=555555\u0026color=009639\u0026logoColor=009639)](https://www.nginx.com)\n\n## はじめにやること\n\n1. ソースダウンロード\n\n    ```bash\n    git clone 'https://github.com/q23isline/wordpress.git'\n    ```\n\n2. DB コンテナ起動時に Permission Denied で起動できない状態にならないように権限付与する\n\n    ```bash\n    cd wordpress\n    sudo chmod -R ugo+w logs\n    ```\n\n3. 開発準備\n\n    ```bash\n    cp .vscode/launch.json.default .vscode/launch.json\n    cp .vscode/settings.json.default .vscode/settings.json\n    ```\n\n4. アプリ立ち上げ\n\n    ```bash\n    docker compose build\n    docker compose up -d\n\n    docker exec -it app php composer.phar install\n    docker exec -it app vendor/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs\n    ```\n\n## 日常的にやること\n\n### システム起動\n\n```bash\ndocker compose up -d\n```\n\n### システム終了\n\n```bash\ndocker compose down\n```\n\n## プラグイン等更新できるようパーミッション解決\n\n- 権限の見直し要！いったん動くように\n\n```bash\nsudo usermod -aG www-data ｛※所有者｝\nsudo chgrp -R www-data ../*\n\n# Wordpress本体を更新できるように\nsudo chown www-data wp-admin/includes/file.php\n\nsudo chmod g+w -R ../*\n```\n\n## 動作確認\n\n### URL\n\n- 管理ページ\n  - \u003chttps://lvh.me/wp-login.php\u003e\n- 一般ページ\n  - \u003chttps://lvh.me\u003e\n\n### ログイン情報\n\n| Username | Password |\n| -------- | -------- |\n| admin    | admin00  |\n\n## logsフォルダ配下のログファイルを見たいとき\n\n以下のコマンド実行でファイルを開けるようになる\n\n```bash\nsudo chmod -R oug+rw logs\n```\n\n## コード静的解析\n\n```bash\ndocker exec -it --env XDEBUG_MODE=coverage app php composer.phar check\n\n# フォーマッターのみ\ndocker exec -it app vendor/bin/phpcs --colors -p\n# コード静的解析のみ\ndocker exec -it app ./vendor/bin/phpstan analyse\n# コード静的解析のベースラインを生成する（現状のエラーをいったんすべて無視する）\ndocker exec -it app ./vendor/bin/phpstan analyse --generate-baseline\n```\n\n## DBのダンプ更新手順\n\n```bash\ndocker exec -it db /bin/bash\ncd /docker-entrypoint-initdb.d\nmysqldump -u root -p wordpress \u003e wordpress.sql\n# Enter password: は root を入力\nexit\n```\n\ngit 差分が現れるため、コミット＆プッシュする\n\n## テーマ・プラグインを新規作成したいとき\n\n```bash\n# テーマ\ndocker exec -it app php wp-cli.phar scaffold _s my-classic-theme --allow-root\n# プラグイン\ndocker exec -it app php wp-cli.phar scaffold plugin my-plugin --allow-root\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fq23isline%2Fwordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fq23isline%2Fwordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fq23isline%2Fwordpress/lists"}