Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

How to run a Micro locally #232

Answered by abdelhai
MystPi asked this question in Help
May 31, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

you can have app.listen(...) at the end of you file, this won't cause any problem.
if you must use a clean solution, check if you're outside a Micro first. this code should work:

module.exports = app;
!process.env.DETA_RUNTIME && app.listen(3000):

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MystPi
Comment options

Answer selected by abdelhai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants