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

gf build cross-compile and run, configuration file no such file or directory #2606

Closed
walingcc opened this issue Apr 27, 2023 · 8 comments
Closed
Assignees
Labels

Comments

@walingcc
Copy link

image

image
使用gf build将config,public,template目录都打包进去了,二进制复制到服务器运行,报错“stat ./config/admin.conf: no such file or directory”

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


image

image
Use gf build to package the config, public, and template directories, copy the binary to the server to run, and report an error "stat ./config/admin.conf: no such file or directory"

@Issues-translate-bot Issues-translate-bot changed the title gf build 交叉编译运行,配置文件no such file or directory gf build cross-compile and run, configuration file no such file or directory Apr 27, 2023
@walingcc
Copy link
Author

图2是使用main.go, 添加gres.Dump()输出的日志

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Figure 2 is using main.go, adding the log output by gres.Dump()

@starccck starccck self-assigned this Apr 27, 2023
@walingcc
Copy link
Author

gf version 1.16

@starccck
Copy link
Contributor

可以试试升级最新的 gf cli , 没有能复现出你说的情况

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


You can try to upgrade the latest gf cli, but the situation you mentioned cannot be reproduced

@gqcn
Copy link
Member

gqcn commented Aug 21, 2023

@walingcc 建议使用v2版本试试,如果问题依旧请检查使用的文件路径,或提供可复现代码。

@gqcn gqcn closed this as completed Aug 21, 2023
@gqcn gqcn added the question label Aug 21, 2023
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@walingcc recommends using v2 version to try. If the problem persists, please check the file path used, or provide reproducible code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants