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-v1
-
Change 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
.git
tree:echo "Emergence_FS::importTree('.', '/', ['exclude' => ['#^/[^/]+\$#', '#^/\.git(/|\$)#'] ]);" | sudo emergence-shell my-site-handle
Be sure to substitute
my-site-handle
at the end -
Check if the imported site offers a
php-config/Git.config.d
file mapping the source repository into the site tree. It may be wrapped in anif
condition checking the site handle that must be made to match the current site to activate it. Visit/git/status
to initialize the repository link to enable pushing/pulling ongoing changes to the git repository