最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to deploy firebase auth emulator on EC2 instance - Stack Overflow

programmeradmin0浏览0评论

I am trying to run firebase auth emulator on local and its running fine on local but not run on EC2 instance and i am facing issues that are stated below

{
  "projectId": "bubble-dev-361213",
  "emulators": {
    "auth": {
      "host": "localhost",
      "port": 9099
    },
    "firestore": {
      "host": "localhost",
      "port": 8088
    },
    "database": {
      "host": "localhost",
      "port": 9000
    },
    "storage": {
      "host": "localhost",
      "port": 9199
    },
    "ui": {
      "enabled": true,
      "host": "localhost",
      "port": 4000
    },
    "singleProjectMode": false
  },
  "storage": {
    "rules": "storage.rules"
  }
}

This is my firebase.json file on local And below is my nodemon.json file

{
  "watch": ["dist/"],
  "ext": ".ts,.js",
  "ignore": [],
  "exec": "node --inspect node_modules/@google-cloud/functions-framework/build/src/main.js --source=dist/ --target=main --debug",
  "env": {
    "NODE_OPTIONS": "--enable-source-maps",
    "FIREBASE_AUTH_EMULATOR_HOST": "18.207.204.161:9099",
    "DB_RESET_TOKEN": "ABC",
    "CRON_RUN_TOKEN": "ABC",
    "ENVIRONMENT": "local"
  }
}

i am very new to these type of things I tried running in my local and exposing the firebase emulator using the ngrok and it was working fine(in nodejs with typeScript) also i run my server using the pm2 run dev command

And expose the server and firebase url using the ngrok That work fine on local

But on ec2 instance i'm able to access the firebase emulator but i'm unable to see the data on the emulator ui and facing connection problems.

发布评论

评论列表(0)

  1. 暂无评论