{"id":109,"date":"2013-09-02T23:00:59","date_gmt":"2013-09-02T21:00:59","guid":{"rendered":"http:\/\/hesmid.nl\/test\/?p=109"},"modified":"2013-09-03T11:18:40","modified_gmt":"2013-09-03T09:18:40","slug":"wordpress-deployment","status":"publish","type":"post","link":"https:\/\/hesmid.nl\/test\/wordpress-deployment\/","title":{"rendered":"WordPress Deployment"},"content":{"rendered":"<p>Maybe the hardest part of the WordPress workflow: deployment from a local server to a remote server.<\/p>\n<p>Some ideas and tricks I found around the web.<\/p>\n<h3><a title=\"mark-jaquith-scaling-servers-and-deploys-oh-my\" href=\"http:\/\/wordpress.tv\/2011\/08\/20\/mark-jaquith-scaling-servers-and-deploys-oh-my\/\">Mark Jaquith: Scaling, Servers, and Deploys \u2014 Oh\u00a0My!<\/a><\/h3>\n<ul>\n<li>Put everything in the repo (not just the theme)<\/li>\n<li>His ideal:<br \/>\n&#8211; WordPress in a subdirectory<br \/>\n&#8211; index, wp-config, themes and plugins in root. Ignore uploads (.gitignore)<!--more--><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-110 aligncenter\" alt=\"markjaquith_slides1\" src=\"https:\/\/hesmid.nl\/test\/wp-content\/uploads\/2013\/09\/markjaquith_slides1-300x186.jpg\" width=\"300\" height=\"186\" srcset=\"https:\/\/hesmid.nl\/test\/wp-content\/uploads\/2013\/09\/markjaquith_slides1-300x186.jpg 300w, https:\/\/hesmid.nl\/test\/wp-content\/uploads\/2013\/09\/markjaquith_slides1-150x93.jpg 150w, https:\/\/hesmid.nl\/test\/wp-content\/uploads\/2013\/09\/markjaquith_slides1.jpg 733w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/li>\n<li>Local development:<br \/>\n&#8211; WAMP etc<br \/>\n&#8211; etc\/hosts to point your domain to a local directory<br \/>\n&#8211; local-config.php:<\/li>\n<\/ul>\n<p style=\"text-align: center;\"><a href=\"https:\/\/hesmid.nl\/test\/wp-content\/uploads\/2013\/09\/markjaquith_slide2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-115\" alt=\"markjaquith_slide2\" src=\"https:\/\/hesmid.nl\/test\/wp-content\/uploads\/2013\/09\/markjaquith_slide2-300x224.jpg\" width=\"300\" height=\"224\" srcset=\"https:\/\/hesmid.nl\/test\/wp-content\/uploads\/2013\/09\/markjaquith_slide2-300x224.jpg 300w, https:\/\/hesmid.nl\/test\/wp-content\/uploads\/2013\/09\/markjaquith_slide2-150x112.jpg 150w, https:\/\/hesmid.nl\/test\/wp-content\/uploads\/2013\/09\/markjaquith_slide2.jpg 526w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: left;\">(Use WP_LOCAL_DEV in other tasks that are different for the live server and the local installation (such as backups etc))<\/p>\n<ul>\n<li>Capistrano: written in Ruby.<br \/>\n&#8211; gem install capistrano<br \/>\n&#8211; gem install railsless-deploy (strip out rails stuff)<br \/>\n&#8211; gem install capistrano-ext (use for multi-stage extension (push to stage instead of live etc)<\/li>\n<li>Directory<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Maybe the hardest part of the WordPress workflow: deployment from a local server to a remote server. Some ideas and tricks I found around the web. Mark Jaquith: Scaling, Servers, and Deploys \u2014 Oh\u00a0My! Put everything in the repo (not just the theme) His ideal: &#8211; WordPress in a subdirectory &#8211; index, wp-config, themes and [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17,4],"tags":[27],"acf":[],"_links":{"self":[{"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/posts\/109"}],"collection":[{"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/comments?post=109"}],"version-history":[{"count":6,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/posts\/109\/revisions"}],"predecessor-version":[{"id":124,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/posts\/109\/revisions\/124"}],"wp:attachment":[{"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/media?parent=109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/categories?post=109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/tags?post=109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}