-Поиск по дневнику

Поиск сообщений в rss_planet_mozilla

 -Подписка по e-mail

 

 -Постоянные читатели

 -Статистика

Статистика LiveInternet.ru: показано количество хитов и посетителей
Создан: 19.06.2007
Записей:
Комментариев:
Написано: 7


Benjamin Sternthal: Wordpress + Docker + Github

Понедельник, 13 Июля 2015 г. 02:30 + в цитатник

Working with Wordpress and Git for me has been a challenge. Ideally I want to keep just my plugins and theme in version control and keep all the Wordpress files (that I would never edit) seperate. You can accomplish this manually but how would this work if you are using Docker for local development?

Docker.. actually makes this easy and quite elegant.

With Docker you are able to leverage the Wordpress container and just have your theme and plugins in version control. Amazing.

Below is the docker-compose file, a project template using this can be found in this github repo.

Example docker-compose File:

web:
  image: wordpress:4.2.2-apache
  links:
    - db:mysql
  ports:
    - "3000:80"
  volumes:
    - plugins/:/var/www/html/wp-content/plugins
    - themes/:/var/www/html/wp-content/themes
db:
  image: mariadb
  environment:
    MYSQL_ROOT_PASSWORD: example

image This pulls a specific version of wordpress. Use this to match whatever you are developing against. The list of available versions can be found in the docker registry

volumes This mounts your plugin folder at the correct location within the container.

That is all!

http://www.devpatch.com/articles/2015-07-13-Wordpress-Docker/


 

Добавить комментарий:
Текст комментария: смайлики

Проверка орфографии: (найти ошибки)

Прикрепить картинку:

 Переводить URL в ссылку
 Подписаться на комментарии
 Подписать картинку