Skip to content

feat(services): install versions of every service side by side; Sites and Services rework - #6

Merged
lukas-frey merged 5 commits into
mainfrom
feat/services-side-by-side
Oct 17, 2026
Merged

lukas-frey merged 5 commits into
mainfrom
feat/services-side-by-side

Conversation

@lukas-frey

Copy link
Copy Markdown
Member

Every service now works like PostgreSQL: versions install side by side, one runs on the service's port, switching is instant, and each version can be uninstalled on its own (also flock services use / flock services uninstall <service> [version]).

App (Windows and macOS alike):

  • Services: one install form (version and port) for every service, PostgreSQL included; version lists look and work the same; on Windows the list has a fixed width and the list and the details scroll separately
  • Sites: a list with the selected site's details (Site, Versions, Server sections), as in Services, instead of the cramped rows/table
  • General: the HTTP/HTTPS/DNS port rows are gone (they couldn't be changed); the ports show only when config.json changes them
  • PHP: FrankenPHP builds can be installed ahead of time; the PHP list is titled PHP-CGI / PHP-FPM

Fixes:

  • Windows: flock restart (and the app's Restart) left Flock stopped: the new daemon started before the old one had exited
  • Windows: the app showed the CLI's output garbled (read as the console code page instead of UTF-8)
  • Flock's own services (web, DNS, hosts file, mail, dumps) showed as unavailable

Also includes the move of PostgreSQL's install/uninstall into flock services.

Tested on Windows with signed test builds (all checks green), including MySQL 8.4 next to 9.7 with switching both ways on port 3306, and restarting from the app.

…PostgreSQL

MySQL, MariaDB, MongoDB, Valkey, Meilisearch and RustFS now keep every installed version
(one per line) next to the others, each with its own data; one runs on the service's port.
Installing another version no longer replaces the running one, switching is instant, and a
version can be uninstalled on its own (`flock services use <service> <version>`,
`flock services uninstall <service> [version]`, POST /v1/catalog/{id}/activate,
DELETE /v1/catalog/{id}?line=).

Also:
- PostgreSQL installs and uninstalls through `flock services` too
- installing a service picks the version and port the same way for PostgreSQL and the others
- the version lists of PostgreSQL and the other services look and work alike
- the Services list has a fixed width, and the list and the details scroll separately (Windows)
- Flock's own services (web, DNS, hosts file, mail, dumps) no longer show as unavailable
- the PHP versions are titled after their server: PHP-CGI (Windows), PHP-FPM (macOS)
…the ports only when config.json changes them
@lukas-frey
lukas-frey added this pull request to the merge queue Oct 17, 2026
Merged via the queue into main with commit d5fd5ef Oct 17, 2026
5 checks passed
@lukas-frey
lukas-frey deleted the feat/services-side-by-side branch October 17, 2026 18:32
lukas-frey added a commit that referenced this pull request Oct 17, 2026
… and Services rework (#6)

* feat(services): install versions of every service side by side, like PostgreSQL

MySQL, MariaDB, MongoDB, Valkey, Meilisearch and RustFS now keep every installed version
(one per line) next to the others, each with its own data; one runs on the service's port.
Installing another version no longer replaces the running one, switching is instant, and a
version can be uninstalled on its own (`flock services use <service> <version>`,
`flock services uninstall <service> [version]`, POST /v1/catalog/{id}/activate,
DELETE /v1/catalog/{id}?line=).

Also:
- PostgreSQL installs and uninstalls through `flock services` too
- installing a service picks the version and port the same way for PostgreSQL and the others
- the version lists of PostgreSQL and the other services look and work alike
- the Services list has a fixed width, and the list and the details scroll separately (Windows)
- Flock's own services (web, DNS, hosts file, mail, dumps) no longer show as unavailable
- the PHP versions are titled after their server: PHP-CGI (Windows), PHP-FPM (macOS)

* feat(app): Sites as a list with the selected site's details, like Services

* fix(windows): restart waits for the old daemon to stop; the tray reads the CLI's output as UTF-8

* feat(app): drop the HTTP, HTTPS and DNS port rows from General; show the ports only when config.json changes them

* feat(app): install a FrankenPHP build ahead of time (it still downloads by itself when a site uses it)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant