DDEV WP ๋น ๋ฅธ ์‹œ์ž‘ ๐Ÿš€

2372 ๋‹จ์–ด gitwordpressddevdocker
DDEV์€ ๊ฐœ๋ฐœ์ž๋ฅผ ์œ„ํ•œ ์Šค์œ„์Šค ๊ตฐ์šฉ ์นผ์ž…๋‹ˆ๋‹ค. ์ปดํ“จํ„ฐ์˜ ๊ฐ ํ”„๋กœ์ ํŠธ์— ๋Œ€ํ•ด ๊ฒฉ๋ฆฌ๋œ ์›น์„œ๋ฒ„ ์ปจํ…Œ์ด๋„ˆ + ๋งŽ์€ PHP ํ”„๋ ˆ์ž„์›Œํฌ ์‚ฌ์šฉ์„ ๊ฐ€๋Šฅํ•˜๊ฒŒ ํ•ฉ๋‹ˆ๋‹ค. WordPress, Drupal, Laravel, Typo3 ๋“ฑ. ๋˜ํ•œ WP-CLI ๋ฐ ์‹ฌ์ง€์–ด NodeJS/npm/yarn๊ณผ ๊ฐ™์€ ๋งŽ์€ ๋‚ด์žฅ ๊ธฐ๋Šฅ์ด ์žˆ์Šต๋‹ˆ๋‹ค.

๋‹ค์Œ์€ WordPress ๋ช…๋ น์ค„ ์ธ์ˆ˜๋ฅผ ํ†ตํ•ด ์ƒˆ๋กœ์šด WordPress๋ฅผ ์„ค์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•œ ๊ฐ„๋‹จํ•œ ๋ฐ๋ชจ์ž…๋‹ˆ๋‹ค.



์ž์„ธํ•œ ๋‚ด์šฉ์€ official guide์„ ์ฐธ์กฐํ•˜์‹ญ์‹œ์˜ค.

DDEV๋Š” git์„ ํ†ตํ•ด ๋™๋ฃŒ ํŒ€ ๋™๋ฃŒ์™€ ๊ณต์œ ํ•  ์ˆ˜ ์žˆ๋Š” YAML ํŒŒ์ผ์— ์ „์ฒด ์›น์„œ๋ฒ„ ๊ตฌ์„ฑ์„ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค.

# .ddev/config.yaml
name: my-wp-site
type: wordpress
docroot: ""
nfs_mount_enabled: false
mutagen_enabled: false

# WebServer settings
php_version: "8.0"
mariadb_version: "10.3"
webserver_type: nginx-fpm


๋˜ํ•œ PHP ๋ฒ„์ „ ๊ฐ„์— ์‰ฝ๊ฒŒ ์ „ํ™˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ž์„ธํ•œ ๋‚ด์šฉ์€ ๊ณต์‹config.yaml-docs์„ ์ฐธ์กฐํ•˜์„ธ์š”.

๋™๋ฃŒ๋Š” git repo๋ฅผ ๊ฐ€์ ธ์˜จ ํ›„ ์‹คํ–‰ddev startํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค. ddev pull ๋ฐ Hosting Provider Integration ๊ธฐ๋Šฅ์„ ์‚ฌ์šฉํ•˜๋ฉด ํ”„๋กœ๋•์…˜ ์‚ฌ์ดํŠธ์—์„œ ์ตœ์‹  ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์™€ ํŒŒ์ผ์„ ๊ฐ€์ ธ์˜ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด my pull scripts์„ ํ™•์ธํ•˜์‹ญ์‹œ์˜ค.

Gitpod์™€ ๊ฐ™์€ ํด๋ผ์šฐ๋“œ IDE์—์„œ๋„ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

DDEV discord์— ๊ฐ€์ž…ํ•˜์—ฌ ์ปค๋ฎค๋‹ˆํ‹ฐ๋ฅผ ๋งŒ๋‚˜๋ณด์„ธ์š”! ๐Ÿงก

์ข‹์€ ์›นํŽ˜์ด์ง€ ์ฆ๊ฒจ์ฐพ๊ธฐ