Skip to content

让代码在docker容器运行 而 不是jar #2345

Answered by JohnNiang
qq547176052 asked this question in Q&A
Discussion options

You must be logged in to vote

直接运行源码是不行的。运行之前需要先经过编译,构建才能正常运行。

Halo 是使用的 Spring Boot 框架,建议打包成 JAR 运行或者直接用 ./gradlew bootRun 运行。直接运行 Application.class 可能无法正常运行。

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ruibaby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2344 on August 23, 2022 13:57.