<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sanjay Mogra</title>
    <description>The latest articles on DEV Community by Sanjay Mogra (@sanjay_mogra).</description>
    <link>https://dev.to/sanjay_mogra</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1562218%2Fbe5bd648-4788-4cdc-b6a5-1fbfe90872ef.png</url>
      <title>DEV Community: Sanjay Mogra</title>
      <link>https://dev.to/sanjay_mogra</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sanjay_mogra"/>
    <language>en</language>
    <item>
      <title>How to install lando on mac/windows/linux for Acquia Recipe</title>
      <dc:creator>Sanjay Mogra</dc:creator>
      <pubDate>Sun, 02 Jun 2024 09:54:32 +0000</pubDate>
      <link>https://dev.to/sanjay_mogra/how-to-install-lando-on-mac-for-acquia-recipe-3p15</link>
      <guid>https://dev.to/sanjay_mogra/how-to-install-lando-on-mac-for-acquia-recipe-3p15</guid>
      <description>&lt;p&gt;Introduction&lt;br&gt;
So, you’re ready to embark on the journey of installing Lando on your Mac for Acquia? Strap in! It’s going to be a ride filled with commands, databases, and a sprinkle of humor to keep things light. Let’s dive in!&lt;/p&gt;

&lt;p&gt;Step 1: Install Lando&lt;/p&gt;

&lt;p&gt;First things first, you need to get Lando up and running on your Mac/Linux. This is as easy as running a single command. Seriously, it’s like magic. Just open your terminal and run:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;/bin/bash -c "$(curl -fsSL https://get.lando.dev/setup-lando.sh)"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Don’t worry, this won’t summon any spirits (unless you’re coding at 3 AM, then all bets are off).&lt;/p&gt;

&lt;p&gt;For those on Windows, Powershell is your friend:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;iex (irm 'https://get.lando.dev/setup-lando.ps1' -UseB)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;For the curious ones, here’s the link to the official installation guide: Lando Installation&lt;/p&gt;

&lt;p&gt;Step 2: Pull Your Project from Git&lt;/p&gt;

&lt;p&gt;Next up, let’s pull your project from Git. It’s like fishing, but less messy and you don’t need a license.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git clone &amp;lt;your-repo-url&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Step 3: Check for the Acquia Plugin&lt;/p&gt;

&lt;p&gt;Now, let’s make sure your Lando setup has the Acquia plugin. This is where we get to flex our Lando muscles:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;lando version --component @lando/acquia&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If it’s missing (like your socks after laundry), add it using:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;lando plugin-add @lando/acquia&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;For more details, check out the plugin installation guide: Lando Acquia Plugin&lt;/p&gt;

&lt;p&gt;Step 4: Initialize Lando&lt;/p&gt;

&lt;p&gt;Navigate to your project directory:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;cd /path/to/your/repo&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Then, initialize Lando with the Acquia recipe. This is where the real magic happens:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;lando init \&lt;br&gt;
  --source cwd \&lt;br&gt;
  --recipe acquia&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;For more magical spells, check out the getting started guide: Lando Acquia Getting Started&lt;/p&gt;

&lt;p&gt;Step 5: Update Database Configuration&lt;/p&gt;

&lt;p&gt;Before you start, you need to check the database info of your Lando container:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;lando info&lt;/code&gt;&lt;br&gt;
Then, update your settings.php file. Add the following lines and comment out the Acquia require line:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;$databases['default']['default'] = array (&lt;br&gt;
    'database' =&amp;gt; 'acquia',&lt;br&gt;
    'username' =&amp;gt; 'acquia',&lt;br&gt;
    'password' =&amp;gt; 'acquia',&lt;br&gt;
    'prefix' =&amp;gt; '',&lt;br&gt;
    'host' =&amp;gt; 'acquia',&lt;br&gt;
    'port' =&amp;gt; '3306',&lt;br&gt;
    'namespace' =&amp;gt; 'Drupal\\mysql\\Driver\\Database\\mysql',&lt;br&gt;
    'driver' =&amp;gt; 'mysql',&lt;br&gt;
    'autoload' =&amp;gt; 'core/modules/mysql/src/Driver/Database/mysql/',&lt;br&gt;
);&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Step 6: Start Lando&lt;br&gt;
Ready, set, go! Start your Lando environment:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;lando start&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Before you pull your project, you might encounter some curl errors. Here’s a handy fix: Fix Curl Error&lt;/p&gt;

&lt;p&gt;For corporate network tips, visit: &lt;a href="https://docs.lando.dev/guides/lando-corporate-network-tips.html"&gt;Lando Corporate Network Tips&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 7: Install Acquia CLI&lt;/p&gt;

&lt;p&gt;You’ll need the Acquia CLI for some nifty commands:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.acquia.com/acquia-cli/install"&gt;Install Acquia CLI&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 8: Import Your Database and Files&lt;/p&gt;

&lt;p&gt;And finally, import your database and files:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;lando pull&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Step 9: Start the Lando Application&lt;/p&gt;

&lt;p&gt;And to wrap it all up, start your Lando application:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;lando start&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Conclusion&lt;br&gt;
And there you have it! You’ve successfully set up Lando on your Mac for Acquia. Now, go forth and conquer your projects, armed with the power of Lando. Remember, coding should be fun, not frightening. Happy coding!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
