Skip to Content

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

  1. 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.
  2. 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):

        terminal
        https://gitlab.com/your-org/your-site-repo.git
  3. Navigate to Your Desired Directory

    • Open your terminal or file explorer.

    • Navigate to the directory where you want to clone the repository. For example:

      terminal
      cd /path/to/your/projects
  4. Clone the Repository

    • Run the git clone command using the URL you copied:

      terminal
      git clone [email protected]:your-org/your-site-repo.git
  5. Access the Cloned Repository

    • Navigate into the cloned repository directory:

      terminal
      cd your-site-repo
  6. 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:
    terminal
    valet link your-site valet secure your-site
Last updated on