0

In windows you can use nssm to make the source code become .exe and make it a service. In Linux I already tried it using pm2 and nginx but it still need the source code.

5
  • 1
    The source to Node or the source to your JavaScript application? Commented Sep 28, 2022 at 3:12
  • In general you deploy apps as source on Linux-type systems, it's just how it's done. The idea of a self-contained executable is really unusual, and for most deployments, exceedingly annoying to deal with. While it's common on Windows to get a bundled .exe, that's not how Linux has worked, conventionally speaking. Commented Sep 28, 2022 at 3:14
  • source to javascript application (express). Commented Sep 28, 2022 at 4:02
  • Java use jar and can deploy without source code. Can node use the same method? Commented Sep 28, 2022 at 4:05
  • check out this stackoverflow.com/a/69954743/11395491 Commented Sep 28, 2022 at 6:23

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.