docs
docs copied to clipboard
Hello World example broken in Windows Powershell 7?
The "Hello World!" example in Starting your first app doesn't seem to work in a Windows Powershell 7 terminal?
There seem to be two issues.
First, I wasn't able to cut and paste the lando init commands from the code example (with line breaks included) into Powershell as the line breaks throw a warning, and then later in the build, an error:
# Initialize a basic LAMP stack using the cwd as the source
lando init \
--source cwd \
--recipe lamp \
--webroot . \
--name hello-lando
These commands need to be placed on a single line or coded in some other way. This line worked for me:
lando init --source cwd --recipe lamp --webroot . --name hello-lando
Second, Powershell doesn't seem to include an "open" command? To open the website URL in Powershell, I had to use "start" instead.
# Visit the local site
open https://hello-lando.lndo.site