Skip to content

Server Management

Commands for starting, stopping, checking status, and viewing logs of the Evonic Flask server.

Start the Flask server.

Terminal window
evonic start [--port PORT] [--host HOST] [--debug] [-f]
FlagRequiredDescription
--portNoPort number (default: from config or 8080)
--hostNoHost to bind (default: 0.0.0.0)
--debugNoEnable debug mode
-f, --foregroundNoRun server in foreground (blocking mode)

Example:

Terminal window
# Start on default port
evonic start
# Start on custom port
evonic start --port 9000
# Start in foreground with debug mode
evonic start -f --debug

Output:

Server started (PID: 12345)
Host: 0.0.0.0
Port: 8080
URL: http://localhost:8080

Stop the running server.

Terminal window
evonic stop

Example:

Terminal window
evonic stop

Output:

Sending SIGTERM to server (PID: 12345)...
Server stopped (PID: 12345)

Check if the server is running.

Terminal window
evonic status

Example:

Terminal window
evonic status

Output (running):

Server is running (PID: 12345)
Port: 8080
URL: http://localhost:8080

Output (not running):

Server is not running (no PID file)

Check for and apply updates from the Git remote. Requires the update supervisor to be set up first.

Terminal window
evonic update [--check] [--tag TAG] [--rollback] [--force]
FlagDescription
--checkFetch tags and report what is available — no update is applied
--tag TAGUpdate to a specific tag instead of the latest
--rollbackRoll back to the previous stable release
--forceSkip SSH signature verification (development only)

Examples:

Terminal window
# Check what version is available
evonic update --check
# Trigger an immediate update check on the running supervisor
evonic update
# Update to a specific tag
evonic update --tag v1.3.0
# Roll back to the previous release
evonic update --rollback

When the update supervisor is running in the background, evonic update signals it via SIGUSR1 to trigger an immediate check. If the supervisor is not running, the update is performed inline in the current process.

See also: Update System guide