Struct perseus_cli::parse::ServeOpts[][src]

pub struct ServeOpts {
    pub no_run: bool,
    pub no_build: bool,
    pub release: bool,
    pub standalone: bool,
    pub integration: Integration,
}
Expand description

Serves your app (set the $HOST and $PORT environment variables to change the location it’s served at)

Fields

no_run: bool

Don’t run the final binary, but print its location instead as the last line of output

no_build: bool

Only build the server, and use the results of a previous perseus build

release: bool

Build and serve for production

standalone: bool

Make the final binary standalone (this is used in perseus deploy only, don’t manually invoke it unless you have a good reason!)

integration: Integration

The server integration to use

Trait Implementations

Append to App so it can instantiate Self. Read more

Append to App so it can update self. Read more

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more

Assign values from ArgMatches to self.

Build an App that can instantiate Self. Read more

Build an App that can update self. Read more

Parse from std::env::args_os(), exit on error

Parse from std::env::args_os(), return Err on error.

Parse from iterator, exit on error

Parse from iterator, return Err on error.

Update from iterator, exit on error

Update from iterator, return Err on error.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.