Linked Rabbiteer & Crons
This commit is contained in:
parent
0ce2785b75
commit
8b136eb565
8 changed files with 58 additions and 8 deletions
14
lib/rabbit/rabbit-workers.js
Normal file
14
lib/rabbit/rabbit-workers.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
import Rabbiteer from "rabbiteer";
|
||||
import workers from "./workers/index.js";
|
||||
|
||||
// Pull Environment Variables
|
||||
const { RABBIT_HOST: host, RABBIT_USER: user, RABBIT_PASS: pass } = process.env;
|
||||
|
||||
// Rabbit Config
|
||||
const rabbitConfig = {
|
||||
host: host ?? "localhost",
|
||||
user: user ?? "rabbit",
|
||||
pass: pass ?? "rabbit",
|
||||
};
|
||||
|
||||
export default new Rabbiteer(null, workers, { autoRabbit: rabbitConfig });
|
Loading…
Add table
Add a link
Reference in a new issue