Just default to in-memory instead.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
@@ -112,19 +112,10 @@ export default async (cmd: Command): Promise<void> => {
|
||||
// @ts-ignore
|
||||
choices: ['SQLite', 'PostgreSQL'],
|
||||
},
|
||||
{
|
||||
type: 'list',
|
||||
name: 'cacheType',
|
||||
message: chalk.blue('Select cache store for the backend [required]'),
|
||||
// @ts-ignore
|
||||
choices: ['in-memory', 'memcache'],
|
||||
},
|
||||
];
|
||||
const answers: Answers = await inquirer.prompt(questions);
|
||||
answers.dbTypePG = answers.dbType === 'PostgreSQL';
|
||||
answers.dbTypeSqlite = answers.dbType === 'SQLite';
|
||||
answers.cacheTypeMemory = answers.cacheType === 'in-memory';
|
||||
answers.cacheTypeMemcache = answers.cacheType === 'memcache';
|
||||
|
||||
const templateDir = paths.resolveOwn('templates/default-app');
|
||||
const tempDir = resolvePath(os.tmpdir(), answers.name);
|
||||
|
||||
@@ -34,15 +34,8 @@ backend:
|
||||
#ca: # if you have a CA file and want to verify it you can uncomment this section
|
||||
# $file: <file-path>/ca/server.crt
|
||||
{{/if}}
|
||||
{{#if cacheTypeMemory}}
|
||||
cache:
|
||||
store: memory
|
||||
{{/if}}
|
||||
{{#if cacheTypeMemcache}}
|
||||
cache:
|
||||
store: memcache
|
||||
connection: ${MEMCACHE_USER}:${MEMCACHE_PASSWORD}@${MEMCACHE_HOST}:$MEMCACHE_PORT}
|
||||
{{/if}}
|
||||
# workingDirectory: /tmp # Use this to configure a working directory for the scaffolder, defaults to the OS temp-dir
|
||||
|
||||
integrations:
|
||||
|
||||
@@ -209,9 +209,6 @@ async function createApp(
|
||||
}
|
||||
child.stdin?.write(`\n`);
|
||||
|
||||
await waitFor(() => stdout.includes('Select cache store for the backend'));
|
||||
child.stdin?.write(`\n`);
|
||||
|
||||
print('Waiting for app create script to be done');
|
||||
await waitForExit(child);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user