{"id":8870,"date":"2016-11-09T16:18:04","date_gmt":"2016-11-09T16:18:04","guid":{"rendered":"https:\/\/www.process.st\/templates\/cloning-an-existing-trellis-based-repo\/"},"modified":"2024-02-28T20:50:49","modified_gmt":"2024-02-28T20:50:49","slug":"cloning-an-existing-trellis-based-repo","status":"publish","type":"post","link":"https:\/\/www.process.st\/templates\/cloning-an-existing-trellis-based-repo\/","title":{"rendered":"Cloning an existing Trellis-based repo"},"content":{"rendered":"<section id=\"choose-your-workspace-folder\">\n<h2> Choose your workspace folder <\/h2>\n<div class=\"text-content\">\n<p>Try and create your main workspace (where all of your Vagrant-based projects will reside) in&nbsp;<strong>~\/<\/strong><\/p>\n<p>The only other requirement is to avoid spaces in the directory path, as this will cause issues during provisioning.<\/p>\n<p>Example:<\/p>\n<pre>mkdir&nbsp;~\/Workplace\/projectname &amp;&amp;&nbsp;cd&nbsp;~\/Workplace\/projectname<br \/><br \/>mkdir projectname.com&nbsp;&amp;&amp; cd projectname.com&nbsp;<\/pre>\n<\/p><\/div>\n<\/section>\n<section id=\"clone-the-repository\">\n<h2> Clone the repository <\/h2>\n<div class=\"text-content\">\n<p>Example:<\/p>\n<pre>git clone git@github.com:smarter\/repo.git .<\/pre>\n<p><em>Make sure you have an account on Github and your ssh key is added to the account.<\/em><\/p>\n<\/p><\/div>\n<\/section>\n<section id=\"add-project-to-your-ide\">\n<h2> Add project to your IDE <\/h2>\n<div class=\"text-content\">\n<p>PHPStorm instruction: <a href=\"https:\/\/app.process.st\/templates\/nKPrIX_fH_nulAEGSepLyw\/view\" rel=\"nofollow\">https:\/\/app.process.st\/templates\/nKPrIX_fH_nulAEGSepLyw\/view<\/a><\/p>\n<\/p><\/div>\n<\/section>\n<section id=\"install-composer-requirements\">\n<h2> Install Composer requirements <\/h2>\n<div class=\"text-content\">\n<pre>cd projectname\/site &amp;&amp;&nbsp;composer&nbsp;install<\/pre>\n<\/p><\/div>\n<\/section>\n<section id=\"install-vagrant-reqs\">\n<h2> install vagrant reqs <\/h2>\n<div class=\"text-content\">\n<pre>cd ..\/trellis\/ &amp;&amp; ansible-galaxy install -r requirements.yml<\/pre>\n<\/p><\/div>\n<\/section>\n<section id=\"install-theme-dependencies\">\n<h2> Install theme dependencies <\/h2>\n<div class=\"text-content\">\n<pre>cd ..\/site\/web\/app\/themes\/projectname<br \/><br \/>npm&nbsp;install<br \/><br \/>bower install<br \/><br \/>gulp<\/pre>\n<\/p><\/div>\n<\/section>\n<section id=\"boot-up-the-vagrant-server\">\n<h2> Boot up the vagrant server <\/h2>\n<div class=\"text-content\">\n<pre>cd ..\/..\/..\/..\/..<br \/><br \/>vagrant up<\/pre>\n<\/p><\/div>\n<div class=\"text-content\">\n<p>You can reach your site on the dev_url configured in<strong>trellis\/group_vars\/development\/wordpress_sites.yml<\/strong> file under site_hosts.<\/p>\n<p>You can use the&nbsp;<strong>gulp watch<\/strong> command to watch your changes instantly<\/p>\n<pre>cd site\/web\/app\/themes\/projectname<br \/><br \/>gulp watch<\/pre>\n<\/p><\/div>\n<\/section>\n<section id=\"importing-the-database\">\n<h2> Importing the Database: <\/h2>\n<\/section>\n<section id=\"log-in-to-your-new-local-wp-site\">\n<h2> Log in to your new local WP site <\/h2>\n<div class=\"text-content\">\n<p>via wp-admin (<strong>http:\/\/projectname.com\/wp\/wp-admin<\/strong>)<\/p>\n<\/p><\/div>\n<\/section>\n<section id=\"enable-the-wp-migrate-db-pro--wp-migrate-db-pro-media-files-plugins\">\n<h2> Enable the WP Migrate DB Pro &amp; WP Migrate DB Pro Media Files plugins <\/h2>\n<\/section>\n<section id=\"add-the-license-key-available-in-lastpass-by-clicking-on-the-enter-license-key-link-that-will-appear-after-activation-of-the-plugins\">\n<h2> Add the license key (available in LastPass) by clicking on the 'enter license key' link that will appear after activation of the plugins <\/h2>\n<\/section>\n<section id=\"log-in-to-the-staging-server-via-wpadmin-and-visit-tools--migrate-db-pro-and-click-the-settings-tab\">\n<h2> Log in to the staging server via wp-admin, and visit Tools &gt; Migrate DB Pro and click the 'Settings' tab <\/h2>\n<\/section>\n<section id=\"ensure-accept-pull-requests-allow-this-database-to-be-exported-and-downloaded-is-checked\">\n<h2> Ensure 'Accept pull requests allow this database to be exported and downloaded' is checked <\/h2>\n<div class=\"image-content\">\n<figure>\n   <a href=\"https:\/\/www.process.st\/templates\/wp-content\/uploads\/2024\/02\/g99lErKM7kC41-HNqjpLeg.png\" alt=\"Ensure 'Accept pull requests allow this database to be exported and downloaded' is checked\" target=\"_blank\" rel=\"noopener\"> <img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.process.st\/templates\/wp-content\/uploads\/2024\/02\/g99lErKM7kC41-HNqjpLeg.png\" \/> <\/a><br \/>\n  <\/figure>\n<\/p><\/div>\n<\/section>\n<section id=\"copy-the-url-in-the-connection-info-box-to-your-clipboard\">\n<h2> Copy the URL in the 'Connection Info' box to your clipboard <\/h2>\n<\/section>\n<section id=\"log-in-to-your-local-development-server\">\n<h2> Log in to your local development server <\/h2>\n<div class=\"text-content\">\n<p>via wp-admin, and visit Tools &gt; Migrate DB Pro and ensure you're on the 'Migrate' tab<\/p>\n<\/p><\/div>\n<\/section>\n<section id=\"click-on-the-pull-radio-button-and-then-paste-in-the-connection-info-from-the-previous-step\">\n<h2> Click on the 'Pull' radio button, and then paste in the connection info from the previous step <\/h2>\n<div class=\"image-content\">\n<figure>\n   <a href=\"https:\/\/www.process.st\/templates\/wp-content\/uploads\/2024\/02\/pulgMkZ5kODY7Nx9sR5FkQ.png\" alt=\"Click on the 'Pull' radio button, and then paste in the connection info from the previous step\" target=\"_blank\" rel=\"noopener\"> <img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.process.st\/templates\/wp-content\/uploads\/2024\/02\/pulgMkZ5kODY7Nx9sR5FkQ.png\" \/> <\/a><br \/>\n  <\/figure>\n<\/p><\/div>\n<\/section>\n<section id=\"check-the-following-settings-are-configured\">\n<h2> Check the following settings are configured <\/h2>\n<div class=\"multi-select-content form-field-content\">\n<ul class=\"items\">\n<li class=\"item\">\n<div class=\"step-number-container\">\n<div class=\"step-number\">\n       1\n     <\/div>\n<\/p><\/div>\n<div class=\"step-checkbox-container\">\n<div class=\"step-checkbox\"><\/div>\n<\/p><\/div>\n<div class=\"item-name-static\">\n      Backup the local database before replacing it (Backup all tables)\n    <\/div>\n<\/li>\n<li class=\"item\">\n<div class=\"step-number-container\">\n<div class=\"step-number\">\n       2\n     <\/div>\n<\/p><\/div>\n<div class=\"step-checkbox-container\">\n<div class=\"step-checkbox\"><\/div>\n<\/p><\/div>\n<div class=\"item-name-static\">\n      Media Files (Compare then download)\n    <\/div>\n<\/li>\n<li class=\"item\">\n<div class=\"step-number-container\">\n<div class=\"step-number\">\n       3\n     <\/div>\n<\/p><\/div>\n<div class=\"step-checkbox-container\">\n<div class=\"step-checkbox\"><\/div>\n<\/p><\/div>\n<div class=\"item-name-static\">\n      Save Migration Profile\n    <\/div>\n<\/li>\n<\/ul><\/div>\n<\/section>\n<section id=\"click-migrate-and-save-profile\">\n<h2> Click 'Migrate and Save Profile' <\/h2>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>Choose your workspace folder Try and create your main workspace (where all of your Vagrant-based projects will reside) in&nbsp;~\/ The only other requirement is to avoid spaces in the directory path, as this will cause issues during provisioning. Example: mkdir&nbsp;~\/Workplace\/projectname &amp;&amp;&nbsp;cd&nbsp;~\/Workplace\/projectnamemkdir projectname.com&nbsp;&amp;&amp; cd projectname.com&nbsp; Clone the repository Example: git clone git@github.com:smarter\/repo.git . Make sure you [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":8871,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"ep_exclude_from_search":false,"cover_icon_emoji":"","cover_icon_url":"","tasks_count":"18","template_description":"","template_id":"oLExOvoNP5VamPOu299Fpg","task_0":"Choose your workspace folder","task_slug_0":"choose-your-workspace-folder","task_1":"Clone the repository","task_slug_1":"clone-the-repository","task_2":"Add project to your IDE","task_slug_2":"add-project-to-your-ide","task_3":"Install Composer requirements","task_slug_3":"install-composer-requirements","task_4":"install vagrant reqs","task_slug_4":"install-vagrant-reqs","task_5":"Install theme dependencies","task_slug_5":"install-theme-dependencies","task_6":"Boot up the vagrant server","task_slug_6":"boot-up-the-vagrant-server","task_7":"Importing the Database:","task_slug_7":"importing-the-database","task_8":"Log in to your new local WP site","task_slug_8":"log-in-to-your-new-local-wp-site","task_9":"Enable the WP Migrate DB Pro &amp; WP Migrate DB Pro Media Files plugins","task_slug_9":"enable-the-wp-migrate-db-pro--wp-migrate-db-pro-media-files-plugins","task_10":"Add the license key (available in LastPass) by clicking on the 'enter license key' link that will appear after activation of the plugins","task_slug_10":"add-the-license-key-available-in-lastpass-by-clicking-on-the-enter-license-key-link-that-will-appear-after-activation-of-the-plugins","task_11":"Log in to the staging server via wp-admin, and visit Tools &gt; Migrate DB Pro and click the 'Settings' tab","task_slug_11":"log-in-to-the-staging-server-via-wpadmin-and-visit-tools--migrate-db-pro-and-click-the-settings-tab","task_12":"Ensure 'Accept pull requests allow this database to be exported and downloaded' is checked","task_slug_12":"ensure-accept-pull-requests-allow-this-database-to-be-exported-and-downloaded-is-checked","task_13":"Copy the URL in the 'Connection Info' box to your clipboard","task_slug_13":"copy-the-url-in-the-connection-info-box-to-your-clipboard","task_14":"Log in to your local development server","task_slug_14":"log-in-to-your-local-development-server","task_15":"Click on the 'Pull' radio button, and then paste in the connection info from the previous step","task_slug_15":"click-on-the-pull-radio-button-and-then-paste-in-the-connection-info-from-the-previous-step","task_16":"Check the following settings are configured","task_slug_16":"check-the-following-settings-are-configured","task_17":"Click 'Migrate and Save Profile'","task_slug_17":"click-migrate-and-save-profile","task_18":"","task_slug_18":"","task_19":"","task_slug_19":"","task_20":"","task_slug_20":"","task_21":"","task_slug_21":"","task_22":"","task_slug_22":"","task_23":"","task_slug_23":"","task_24":"","task_slug_24":"","task_25":"","task_slug_25":"","task_26":"","task_slug_26":"","task_27":"","task_slug_27":"","task_28":"","task_slug_28":"","task_29":"","task_slug_29":"","task_30":"","task_slug_30":"","task_31":"","task_slug_31":"","task_32":"","task_slug_32":"","task_33":"","task_slug_33":"","task_34":"","task_slug_34":"","task_35":"","task_slug_35":"","task_36":"","task_slug_36":"","task_37":"","task_slug_37":"","task_38":"","task_slug_38":"","task_39":"","task_slug_39":"","task_40":"","task_slug_40":"","task_41":"","task_slug_41":"","task_42":"","task_slug_42":"","task_43":"","task_slug_43":"","task_44":"","task_slug_44":"","task_45":"","task_slug_45":"","task_46":"","task_slug_46":"","task_47":"","task_slug_47":"","task_48":"","task_slug_48":"","task_49":"","task_slug_49":"","task_50":"","task_slug_50":"","task_51":"","task_slug_51":"","task_52":"","task_slug_52":"","task_53":"","task_slug_53":"","task_54":"","task_slug_54":"","task_55":"","task_slug_55":"","task_56":"","task_slug_56":"","task_57":"","task_slug_57":"","task_58":"","task_slug_58":"","task_59":"","task_slug_59":"","task_60":"","task_slug_60":"","task_61":"","task_slug_61":"","task_62":"","task_slug_62":"","task_63":"","task_slug_63":"","task_64":"","task_slug_64":"","task_65":"","task_slug_65":"","task_66":"","task_slug_66":"","task_67":"","task_slug_67":"","task_68":"","task_slug_68":"","task_69":"","task_slug_69":"","task_70":"","task_slug_70":"","task_71":"","task_slug_71":"","task_72":"","task_slug_72":"","task_73":"","task_slug_73":"","task_74":"","task_slug_74":"","task_75":"","task_slug_75":"","task_76":"","task_slug_76":"","task_77":"","task_slug_77":"","task_78":"","task_slug_78":"","task_79":"","task_slug_79":"","task_80":"","task_slug_80":"","task_81":"","task_slug_81":"","task_82":"","task_slug_82":"","task_83":"","task_slug_83":"","task_84":"","task_slug_84":"","task_85":"","task_slug_85":"","task_86":"","task_slug_86":"","task_87":"","task_slug_87":"","task_88":"","task_slug_88":"","task_89":"","task_slug_89":"","task_90":"","task_slug_90":"","task_91":"","task_slug_91":"","task_92":"","task_slug_92":"","task_93":"","task_slug_93":"","task_94":"","task_slug_94":"","task_95":"","task_slug_95":"","task_96":"","task_slug_96":"","task_97":"","task_slug_97":"","task_98":"","task_slug_98":"","task_99":"","task_slug_99":"","footnotes":""},"categories":[7,1],"tags":[],"class_list":["post-8870","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-miscellaneous","category-uncategorized"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.process.st\/templates\/wp-json\/wp\/v2\/posts\/8870","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.process.st\/templates\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.process.st\/templates\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.process.st\/templates\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.process.st\/templates\/wp-json\/wp\/v2\/comments?post=8870"}],"version-history":[{"count":0,"href":"https:\/\/www.process.st\/templates\/wp-json\/wp\/v2\/posts\/8870\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.process.st\/templates\/wp-json\/wp\/v2\/media\/8871"}],"wp:attachment":[{"href":"https:\/\/www.process.st\/templates\/wp-json\/wp\/v2\/media?parent=8870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.process.st\/templates\/wp-json\/wp\/v2\/categories?post=8870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.process.st\/templates\/wp-json\/wp\/v2\/tags?post=8870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}