这是我的第一个问题。我是个初学者。我在和sage一起做wordpress的项目。当我尝试运行模板时,有一个错误:

作曲家版本是可以的,但是Lando版本是php7.4,我需要php8.1版本。
我尝试在lando.yml中更改php版本,然后使用命令lando,但它不起作用。我也在和manjaro合作。欢迎任何帮助。谢谢!
发布于 2022-12-02 14:31:35
你可以从lando init开始
$ lando init
? From where should we get your app's codebase? remote git repo or archive
? Please enter the URL of the git repo or tar archive containing your application code https://wordpress.org/latest.tar.gz
? What recipe do you want to use? wordpress
? Where is your webroot relative to the init destination? wordpress
? What do you want to call this app? my-wordpress-app然后得到一个.lando.yml,其中需要为appserver指定php版本。
# .lando.yml
name: my-wordpress-app
recipe: wordpress
config:
webroot: wordpress
services:
appserver:
type: php:8.1 #add these lines在进行php-更改之后,您还可能需要销毁和重建:
lando destroy -y && lando start 资料来源:
https://stackoverflow.com/questions/74389892
复制相似问题