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

Specify main file for Nodemon #41

Closed
khawaga opened this issue Nov 21, 2018 · 2 comments
Closed

Specify main file for Nodemon #41

khawaga opened this issue Nov 21, 2018 · 2 comments

Comments

@khawaga
Copy link

khawaga commented Nov 21, 2018

I currently have a Node.js application where the main file is not server.js but actually resides at bin/www, I can change the file name in launch.json for the Launch Server (AZDS) config, however how do I change that for it to work with nodemon in the Attach to Server (AZDS) config?
I can see it still defaults to server.js even after setting the main file in package.json.

@stepro
Copy link
Member

stepro commented Nov 21, 2018

Take a look in the tasks.json file for the attach task. You should see the nodemon command there with the server.js file that you can change to bin/www.

@khawaga
Copy link
Author

khawaga commented Nov 25, 2018

@stepro Thank you so much.

@khawaga khawaga closed this as completed Nov 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants