Skip to content
Command line · Ship

spredr up

Packs the folder (without what .gitignore and .spredrignore leave out, nor secrets, node_modules or .git), uploads it, deploys it and follows it until it is live, or until it fails. The first time it creates the service and links the folder; after that, each spredr up is a new release. It builds the folder’s Dockerfile or, without one, works out how to build it.

Usage

terminal
$spredr up [folder] [--name <name>] [--port 8080] [--health /health] [--memory 256] [--region us|eu] [--detach]

Flags

--name <name>The new service’s name (by default, the folder’s).
--port <port>The port your app listens on (by default, your Dockerfile’s EXPOSE, or 8080).
--health <path>A path that answers 200 when it is ready.
--memory <MB>Its memory ceiling.
--region <us|eu>Where it runs (by default, us).
--detachReturns as soon as it is queued.
--verboseThe whole build log as it happens, not just its steps.

Examples

terminal
$spredr up
$spredr up ./api --name mi-api --port 3000
$spredr up --detach --json
back to the command line