Summary: | www/npm: npm avtostart ? | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Aleks <Z462vasa> |
Component: | Individual Port(s) | Assignee: | Po-Chuan Hsieh <sunpoet> |
Status: | Open --- | ||
Severity: | Affects Only Me | CC: | saper |
Priority: | --- | Flags: | koobs:
maintainer-feedback?
(sunpoet) |
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
Aleks
2020-08-24 11:25:30 UTC
I don't understand what it means. Good afternoon ! I run with pens. cd .. && npm install && npm start I wanted to run it myself. After starting the server Here is what you can do: - let's assume your project is in /home/project directory - you need to run "npm install" only once: (cd /home/project && npm install) - probably you want to run your project as some user (say "myuser") and not root. - after this you can add the following to the /etc/rc.local file: (cd /home/project && su myuser -c "npm start") hope this helps! |