envExampleContent static method

  1. @Deprecated('Migrated to install.yaml publish:; will be removed in V2')
String envExampleContent({
  1. bool withoutBroadcasting = false,
})

Generates a .env.example template file with empty values.

Implementation

@Deprecated('Migrated to install.yaml publish:; will be removed in V2')
static String envExampleContent({bool withoutBroadcasting = false}) {
  var content = StubLoader.load('install/env_example');

  if (!withoutBroadcasting) {
    content +=
        '\nBROADCAST_CONNECTION=\n'
        'REVERB_HOST=\n'
        'REVERB_PORT=\n'
        'REVERB_SCHEME=\n'
        'REVERB_APP_KEY=\n';
  }

  return content;
}