How to start multiple application in same db?

后端 未结 1 1633
独厮守ぢ
独厮守ぢ 2021-01-25 16:16

I have to meteor application in local (admin and client). Applications run on different port 3000 and 3003. I want to use both app should use the same

相关标签:
1条回答
  • 2021-01-25 16:56

    If you are looking for a start script you could do the following:

    In the root of your app, create a file called start.sh:

    #!/usr/bin/env bash
    MONGO_URL=mobgodb://127.0.0.1:3001/meteor meteor --port 3000
    

    Then run chmod +x start.sh

    You can then start your app just by typing ./start.sh

    0 讨论(0)
提交回复
热议问题