OHIF as Node JS Service (systemctl) #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
1. Build Locally
Build app to generate
/distfolder:2. Prepare the Static Files
Copy only the
/distfolder to the server since it already contains theserve.jsonfile:3. Install Node melalui NVM
4. Create the
.serviceFileSince the
serve.jsonis already inside/dist, you don’t need to explicitly specify its path. Theservecommand will automatically detect and use it.Create
/etc/systemd/system/ohif-viewer.service:5. Enable and Start the Service