This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
It sounds like that your
nodejsuser does not have access to the
I’ve just tested running the project with the
rootuser directly and it works well:
What you could do is:
pm2as the root user
git clonethe project into the
nodejsuser’s home directory, that way the
nmodejsuser will be the owner of the files and would not have that permissions problem
Let me know how it goes!
This sounds like a permissions/ownership issue. See if your have set some weird permissions most of all. Usually, and I believe the express app has the same permissions, they need to be 755 for folders nad 644 for files. You can do that for a faster outcome:
Where /path/to/express/app should be the real path.
Want to learn more? Join the DigitalOcean Community!
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Sign up now