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

本地启动examble报错:/bin/sh -c mkdir -p /fastapi-admin #59

Closed
xflcx1991 opened this issue Jul 28, 2021 · 5 comments
Closed

本地启动examble报错:/bin/sh -c mkdir -p /fastapi-admin #59

xflcx1991 opened this issue Jul 28, 2021 · 5 comments

Comments

@xflcx1991
Copy link

ERROR: Service 'app' failed to build: The command '/bin/sh -c mkdir -p /fastapi-admin' returned a non-zero code: 1 抛开权限不说,这里既然用了-c是不是应该把后面的mkdir及其参数用引号包裹起来?
/bin/sh -c 'mkdir -p /fastapi-admin'
我该如何修改启动脚本?

权限问题,我手动创建了/fastapi-admin,并把文件夹属主改为了当前用户

@xflcx1991
Copy link
Author

xflcx1991 commented Jul 28, 2021

嘿,报错的是树莓派,在Ubuntu16.04上是好的。看来是平台的差异问题,Ubuntu16.04启动后docker容器始终是restarting状态,我再去查查。

@long2ice
Copy link
Collaborator

树莓派要改一下python的基础镜像吧,只能使用arm的

@xflcx1991
Copy link
Author

树莓派要改一下python的基础镜像吧,只能使用arm的

请问你在那个平台开发的,我不想折腾环境了,搞个虚拟机弄成和你一样的系统环境。

@long2ice
Copy link
Collaborator

按理说跟环境没关系,Linux Mac都可以

@xflcx1991
Copy link
Author

按理说跟环境没关系,Linux Mac都可以

谢谢,我手动运行env 一些环境变量 uvicorn examples.main:app_ --port 8000跑起来了。此问题终结,不折腾环境了,赶紧看代码去。

laggron42 added a commit to Ballsdex-Team/fastapi-admin that referenced this issue Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants