mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-05 04:07:27 +00: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;
|
|
});
|