Skip to content

[Bug]: serve not working after upgrade to v3? #1

@wivaku

Description

@wivaku

System architecture

Mac, ARM64 (M1, M2, etc)

PHP Version

PHP 8.4.4 (cli) (built: Feb 11 2025 15:36:20) (NTS)

Bug description

In v2 I was using:
expose serve share.mydomain.com --port 3000

In v3 this no longer works. I get:

[2025-02-21 11:42:20] production.ERROR: No arguments expected for "serve" command, got "share.mydomain.com". {"exception":"[object] (Symfony\\Component\\Console\\Exception\\RuntimeException(code: 0): No arguments expected for \"serve\" command, got \"share.mydomain.com\". at phar:///.../.composer/vendor/exposedev/expose/builds/expose/vendor/symfony/console/Input/ArgvInput.php:199)

expose help serve states:

Description:
  Set or retrieve the default server to use with Expose.

Options:
      --server[=SERVER]
      --server-host[=SERVER-HOST]
      --server-port[=SERVER-PORT]

It seems that is the incorrect text: I want to start the server, not: set or retrieve the default server to use.
Just in case, when I try: expose serve --server=share.mydomain.com --server-port=3000 (same with --server-host) I get:

   You can connect to a specific server with the --server=key option or set this server as default with the default-server command.

And then a list of expose servers (free, eu-1, etc.).

The documentation says I should use expose-server instead (instead of expose):
expose-server serve my-domain.com

But that binary is not installed (I checked in ~/.composer/vendor/bin/)

I did a fresh install using composer global require exposedev/expose (BTW which still installs v2.6.2) and then did expose self-update which upgraded to v3.0.1.

Steps to reproduce

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions