Set Up Bedrock Locally
🎯 Goal: Clone the Bedrock-based repository generated by the autolauncher and prepare your local development environment.
After launching your staging site using the autolauncher, a Bedrock-based GitLab repository is automatically created for your project. Follow these steps to clone the repository and set up your local environment:
✅ Steps
-
Ensure Prerequisites Are Met
- Git Installed: Verify that Git is installed on your machine. If not, download and install it from the official Git website .
- GitLab Access: Confirm that you have the necessary permissions to access the repository.
-
Obtain the Repository URL
-
Navigate to your GitLab repository in your web browser.
-
Click the Clone button, typically located at the top-right of the repository page.
-
Copy the provided URL:
-
SSH (recommended if you have SSH keys configured):
terminal[email protected]:your-org/your-site-repo.git
-
HTTPS (requires Personal Access Token if 2FA is enabled):
terminalhttps://gitlab.com/your-org/your-site-repo.git
-
-
-
Navigate to Your Desired Directory
-
Open your terminal or file explorer.
-
Navigate to the directory where you want to clone the repository. For example:
terminalcd /path/to/your/projects
-
-
Clone the Repository
-
Run the
git clone
command using the URL you copied:terminalgit clone [email protected]:your-org/your-site-repo.git
-
-
Access the Cloned Repository
-
Navigate into the cloned repository directory:
terminalcd your-site-repo
-
-
Set the Document Root to
web/
- Configure your local development server (e.g., Laravel Valet, MAMP, XAMPP) to use the
web/
directory as the document root. - For Laravel Valet:
terminalvalet link your-site valet secure your-site
- Configure your local development server (e.g., Laravel Valet, MAMP, XAMPP) to use the