Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hello World example broken in Windows Powershell 7? #237

Open
pkiff opened this issue Mar 14, 2023 · 0 comments
Open

Hello World example broken in Windows Powershell 7? #237

pkiff opened this issue Mar 14, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@pkiff
Copy link

pkiff commented Mar 14, 2023

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
@pkiff pkiff added the bug Something isn't working label Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant