Is it possible to new two bot in the same time?
codinian opened this issue · comments
bot, err := linebot.New(
os.Getenv("CHANNEL_SECRET"),
os.Getenv("CHANNEL_TOKEN"),
)
adminbot, err := linebot.New(
os.Getenv("ADMIN_CHANNEL_SECRET"),
os.Getenv("ADMIN_CHANNEL_TOKEN"),
)
heroku log:
at=error code=H10 desc="App crashed" method=POST path="/callback" host=<myapp>.herokuapp.com request_id=<req_id> fwd=<fwd> dyno= connect= service= status=503 bytes= protocol=https
I try to new two linebot and deploy to Heroku. Each of it will handle different path (one for herokuapp.com/callback
, another for herokuapp.com/admin
)
I get status=503, so I wonder if it is possible to do that?