Skip to content

Instantly share code, notes, and snippets.

View sorokinvj's full-sized avatar
🦋

Vladislav Sorokin sorokinvj

🦋
View GitHub Profile
@sorokinvj
sorokinvj / Running a Node.js application using nvm as a systemd service.md
Last active April 22, 2019 14:01 — forked from joepie91/.md
Running a Node.js application using nvm as a systemd service

Running a Node.js application using nvm as a systemd service

Trickier than it seems.

1. Set up nvm

Let's assume that you've already created an unprivileged user named myapp. You should never run your Node.js applications as root!

Switch to the myapp user, and do the following: