Bootstrap a Site from Git
Create a new site with no parent
Clone the repository you want to bootstrap from to disk on the same machine hosting the new site:
git clone https://github.com/JarvusInnovations/emergence-skeleton.git /tmp/emergence-skeleton-v1Change your working directory to the newly-cloned repository:
cd /tmp/emergence-skeleton-v1/Import the contents of the repository into your newly created site, excluding root files and the
.gittree:echo "Emergence_FS::importTree('.', '/', ['exclude' => ['#^/[^/]+\$#', '#^/\.git(/|\$)#'] ]);" | sudo emergence-shell my-site-handleBe sure to substitute
my-site-handleat the endCheck if the imported site offers a
php-config/Git.config.dfile mapping the source repository into the site tree. It may be wrapped in anifcondition checking the site handle that must be made to match the current site to activate it. Visit/git/statusto initialize the repository link to enable pushing/pulling ongoing changes to the git repository
Last updated