浏览代码

TO ENV

master
父节点
当前提交
3624f804f4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      index.mjs

+ 1
- 1
index.mjs 查看文件

@@ -30,7 +30,7 @@ app.get('/', (_req, res) => {
res.status.send(200).send("Amigo Receipt Sender Service Homepage!") res.status.send(200).send("Amigo Receipt Sender Service Homepage!")
}) })


amqp.connect('amqp://localhost' ).then(async conn=> {
amqp.connect(process.env.AMQP_SERVER).then(async conn=> {
const ch = await conn.createChannel() const ch = await conn.createChannel()
const queue = ch.assertQueue(queueName, { durable: true }) const queue = ch.assertQueue(queueName, { durable: true })
if (queue) { if (queue) {


正在加载...
取消
保存