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

Embedded command doesn't work; starts the web server instead. #10254

Closed
boughtonp opened this issue Feb 12, 2020 · 1 comment
Closed

Embedded command doesn't work; starts the web server instead. #10254

boughtonp opened this issue Feb 12, 2020 · 1 comment

Comments

@boughtonp
Copy link

  • Gitea version: gitea-1.11.0-windows-4.0-amd64.exe from releases page.

I've just been trying to figure out why the functionality documented at https://docs.gitea.io/en-us/cmd-embedded/ doesn't work on the copy of Gitea I just downloaded.

Instead of responding as the page suggests, it launches Gitea as if the "web" command was given.

Based on #9982 it seems the reason is because the embedded command functionality only exists on the unreleased 1.12 branch.

So two bugs:

  • The website should be referring to the currently released version.
  • Unknown commands should not start the server, they should return an appropriate error, (plus a reference to using --help to check supported commands).

And a question:
How does one get the equivalent of gitea embedded extract --custom --rename with the currently released Gitea v1.11?

@techknowlogick
Copy link
Member

Embedded CLI doesn't work in 1.11, it was added 1.12. As for versioning docs there is another ticket opened for that.

If you would like embedded CLI option to work in 1.11 you would need to manually backport that PR into the release/v1.11 branch and build from source.

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants