2015.04.19 WordBench 埼玉 Git & WordPress

download 2015.04.19 WordBench 埼玉 Git & WordPress

of 73

  • date post

    22-Jul-2015
  • Category

    Technology

  • view

    266
  • download

    2

Embed Size (px)

Transcript of 2015.04.19 WordBench 埼玉 Git & WordPress

  • Git WordPress WordBench #2

  • Web EXP WordCamp Tokyo 2014 Web

    Prole

  • WordBench Saitama 2015

    #01 Vir tual machine#02 Git

  • Table of Contents

    Git

    Git

  • WordPress

  • Git :

    WordPress

  • Git :

    wordpress/wp-content/themes/theme/wordpress/wp-content/themes/theme/.gitwordpress/wp-content/themes/theme/.gitignore

    wordpress/wp-content/themes/theme/wordpress/wp-content/themes/theme/.gitwordpress/wp-content/themes/theme/.gitignore

  • Git :.gitignore *.diff*.err*.orig*.log*.rej*.swo*.swp*.zip*.vi*~*.sass-cache*.seed*.csv*.dat*.out*.pid*.gz

    .DS_Store

    ._*Thumbs.db.cache.project.settings.tmproj.esprojnbproject.sublime-project.sublime-workspace.csscomb.json

    .hg

    .svn

    .CVS

    .idea

    .ssh

    .gruntnode_modulesdistlib-covlcov.infopidslogsresultsbuild

  • Git :

  • .gitignore WordMove

    Git :

  • Git :

    wordpress/wordpress/.gitwordpress/.gitignore

    wordpress/wordpress/.gitwordpress/.gitignore

    WordPress

  • *.log.htaccesssitemap.xmlsitemap.xml.gzwp-config.phpwp-content/advanced-cache.phpwp-content/backup-db/wp-content/backups/wp-content/blogs.dir/wp-content/cache/wp-content/upgrade/wp-content/uploads/wp-content/wp-cache-config.php

    *.log.htaccesssitemap.xmlsitemap.xml.gzwp-config.phpwp-content/advanced-cache.phpwp-content/backup-db/wp-content/backups/wp-content/blogs.dir/wp-content/cache/wp-content/upgrade/wp-content/uploads/wp-content/wp-cache-config.php

    +

    .gitignore

    Git :

  • https://www.gitignore.io/

  • DB `wp-cong.php`

    - - -

    - - -

    php DB WordPress wp-cong.php

    wp-cong.php

    OK

    Git :

  • `wp-content/uploads` `wp-content/uploads`

    Git .git

    Git :

  • Git :

    .gitignore

  • Git :

  • Git :

    vccwvccw/.gitvccw/.gitignore

    vccwvccw/.gitvccw/.gitignore

    vccw

  • .vagrant/**/wp-content/local-*.sql

    .vagrant/**/wp-content/local-*.sql +

    .gitignore

    Git :

  • Git :

    Vagrantle/site.yml Movele /

  • Git :

    Vagrant Movele BrowserSync IP/

  • Git

    Git

  • Git

    Gitow GitHub Flow

  • Git

    =

  • Git FTP git hook + script WordMove rsync scp git-ftp git-deploy

  • Git :Git Hooks

    Jenkins

  • http://ja.katzueno.com/2015/01/3390/

  • https://github.com/markomarkovic/simple-php-git-deploy

  • https://github.com/lkwdwrd/git-deploy

  • https://jenkins-ci.org/

  • Git :Git Hooks

    $ git clone $ git clone

    $ git pull $ git pull

    NG!!

  • Git :Git Hooks

    .git

    git pull merge

    http://grimoire.ca/git/stop-using-git-pull-to-deploy

  • Git :Git Hooks

    #!/bin/bashunset GIT_INDEX_FILEgit --work-tree=/var/www/html --git-dir=/home/demo/proj/.git checkout -f

    #!/bin/bashunset GIT_INDEX_FILEgit --work-tree=/var/www/html --git-dir=/home/demo/proj/.git checkout -f

    .git merge

  • Git :

  • http://dploy.io/

  • http://dploy.io/

  • https://www.deployhq.com/

  • http://beanstalkapp.com/

  • https://www.heroku.com/

  • EXP

  • CPI ssh

    GitHub + dploy + FTP

  • SSH

    FTP +

    Git

  • WordPress

  • Git

  • https://github.com/welaika/wordmove

  • Git :WordMove

    WordPress RubyGems &

  • Git :WordMove

    WordBench WordMove

  • Git :WordMove

    WordMove git

  • Git :WordMove

    WordPress Git

  • Git :WordMove

    WordPress uploads plugins themes

  • Git :WordMove

    $ wordmove help$ wordmove help push$ wordmove help pull

    $ wordmove help$ wordmove help push$ wordmove help pull

  • Git :WordMove

  • Git :WordMove

    Movele (YAML)

    (2) local vccw staging database ssh or ftp OK

  • Git :

    git ?Git uplaods ?

  • Git :

    $ wordmove pull -w$ wordmove pull -p$ git commit -m bla bla bal

    $ wordmove pull -w$ wordmove pull -p$ git commit -m bla bla bal

  • Git :

    pull

    $ git checkout **/plugins/plugin_name$ git commit -m bla bla bla$ wordmove push -p

    $ git checkout **/plugins/plugin_name$ git commit -m bla bla bla$ wordmove push -p

  • Git :

    uploads

    $ wordmove pull -u -e production$ git commit -m bla bla bla$ wordmove push -u -e staging

    $ wordmove pull -u -e production$ git commit -m bla bla bla$ wordmove push -u -e staging

  • Git :

    uploads uploads

    WordMove rsync (Mac, Linux)

  • Git :

    $ rsync [option] source dest $ rsync [option] source dest

    $ rsync ec2-user@0.0.0.0://wp-content/uploads/ uploads $ rsync ec2-user@0.0.0.0://wp-content/uploads/ uploads

  • Git :

    WordMove ssh rsync --delete

  • Git :

    Shell Script

    SSH

    Transmit FTP

  • Git :

    DB

    $ wordmove pull -d -e production$ wordmove push -d -e staging

    $ wordmove pull -d -e production$ wordmove push -d -e staging

  • https://github.com/interconnectit/Search-Replace-DB

  • Git :

    WordMove DB

    WordMove

    DB + Search-Replace-DB

    https://github.com/welaika/wordmove/issues/78#issuecomment-55882636

  • Git :

    WordPress

    wp-conng.php

  • WordPress Git WordMove WordMove uploads rsync