Skip to main content

Working with Lando

Changes in your .env file

Connecting your app to the new environment you need to make some tweaks in your .env file.

Change your DB_HOST to database. If you use MySQL or MariaDB Lando will create a database named laravel for you with a user laravel and the password laravel. The database section in your .env should look like this:

lando PHP version issue 7.4.x instead wanting >= 8.0.2

I installed Lando 3.6.2 and Laravel 9.  When I visit the web page, I getting

Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.28. in /app/vendor/composer/platform_check.php on line 24

 

Problem solving

Opening the directory in VS Code, if I run the command 

php -v

The response I'm getting is

Mac: how to clear cache

Clear DNS Cache

The DNS (Domain Name Service) cache on your Mac helps browsers locate and connect to web addresses quickly. If your browser Safari or Chrome still fails to load websites, this can be the result of an obsolete DNS cache may be causing the issue. In this instance you want to focus clearing the cache.  Using Terminal or iTerm2 enter the following command:

sudo killall -HUP mDNSResponder

 

Building a Drupal or Laravel instance on OSX using Lando and Docker

As a web developer, you will most likely need to run local copies of a bunch of different web sites. Regularly switching between several sites daily.  Sometime Drupal, other Laravel and whatever frameworks that are in your toolkit.

 

Install Docker and Lando

Do you have Docker installed?  No, then go to the Docker Desktop page and download.

Creating a CI/CD that uses GitHub Actions for Laravel

Do you want set up a CI/CD process using GitHub Actions?

This is a walk-through basic setup to automate your integrations and deployments for your projects.

 

GitHub Actions

GitHub Actions allows for your code can be built, tested and deployed from GitHub.  Let's explore an approach in managing CI/CD processes using GitHub Actions.

 

Changing git push from passphrase

Changing git push from passphrase?  There are several ways to tackle this step.  I'm going to focus one of these steps.

From your web directory root, look for your .git directory.  Then open the .git...

cd .git

Next using your shell prompt (iTerm2), view the contents of the config file

vim config

Presently the config file looks like the following

Could not open input file: artisan

If like me you tried the command

php artisan

However, you had the following “Could not open input file: artisan” error when starting the Laravel service using the above command.

 

How come “Could not open input file: artisan” error is showing up in Laravel

There are a few causes behind this error.

login details for account '{email}' were rejected

Connecting a device and testing in Xcode have you had a no profiles error?

Showing All Messages
The operation couldn’t be completed. Unable to log in with account '{email}'. The login details for account '{email}' were rejected.
No profiles for '{bundle identifier}' were found: Xcode couldn't find any iOS App Development provisioning profiles matching '{bundle identifier}'.

These two messages are interconnected.  To resolve this step, go

Subscribe to