mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-11-23 00:09:08 +01:00
efa42a1624
* moveto scripts * add scripts/dev.mjs
15 lines
340 B
JavaScript
15 lines
340 B
JavaScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import Redis from 'ioredis';
|
|
import { loadConfig } from '../built/config.js';
|
|
|
|
const config = loadConfig();
|
|
const redis = new Redis(config.redis);
|
|
|
|
redis.on('connect', () => redis.disconnect());
|
|
redis.on('error', (e) => {
|
|
throw e;
|
|
});
|