Can I edit files in /private from the server?



So I was just wondering, is there any way to manipulate files in the /private folder on the server?


You should not do this. You should think of nodejs deploys as atomic. Today’s cloud hosting environment could theoretically shutdown and spin up a new instance at anytime. Instances freeze and are replaced with new ones. Therefore any data persisted in a file that is not part of the deploy bundle would get dropped.

The correct way to do what you are trying to do is to store data in a database or in a cloud file storage system like amazon S3 or cloudinary.