Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Remove the `docker-compose.yaml` file for modules

Aperta
#5,164 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
dart, postgresql
Ambito
backend, databases

Direzione di ricerca

Start with the configuration code in packages/serverpod_shared/lib/src/config.dart around lines 617 and 643, then trace why the server still throws during start when dataPath is present without a password. Done means modules can use the test run mode without docker-compose.yaml and initialize the embedded database without a password; verify that startup succeeds for this configuration.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: cli area: templates enhancement ux

The original plan for replacing SQLite by embedded Postgres on #5161 was to still skip docker-compose.yaml on modules, since they only use the test run mode. However, for this, we need to allow initializing the database without password when dataPath is present - which is already supported on the EmbeddedPostgres layer.

On the config, this is a simple change like below. However, even with these change, the server is still throwing on start:

// packages/serverpod_shared/lib/src/config.dart:617
    var password = passwords[ServerpodPassword.databasePassword.configKey];
    if (password == null && rawDataPath == null) {
      throw PasswordMissingException(
        ServerpodPassword.databasePassword.configKey,
      );
    }
...
// packages/serverpod_shared/lib/src/config.dart:643
    return PostgresDatabaseConfig(
      host: dbSetup[ServerpodEnv.databaseHost.configKey],
      port: dbSetup[ServerpodEnv.databasePort.configKey],
      name: dbSetup[ServerpodEnv.databaseName.configKey],
      user: dbSetup[ServerpodEnv.databaseUser.configKey],
      requireSsl: dbSetup[ServerpodEnv.databaseRequireSsl.configKey] ?? false,
      isUnixSocket:
          dbSetup[ServerpodEnv.databaseIsUnixSocket.configKey] ?? false,
      password: password ?? '', // <-- Default to empty
      searchPaths: _parseList(
        dbSetup[ServerpodEnv.databaseSearchPaths.configKey],
      ),
      maxConnectionCount: maxConnectionCount,
      dataPath: dataPath,
    );

Given the tight deadline to release the next version, we should make this improvement afterwards.

Lingua principale
Dart
Stelle
3.3k
Fork
382
Merge medio
2g 6h
PR unite (30g)
61

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di serverpod/serverpod

Tutte le issue di serverpod/serverpod

Issue simili

Altre issue su Dart

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.