Question

How to deploy Node JS App With file upload

Posted March 3, 2021 790 views
DeploymentDevelopmentJavaScriptReactDigitalOcean App Platform

How Can You easily deploy Node Js app with the capability to save image files to disk

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.

×
Submit an Answer
1 answer

Hello @velazquezsheldon

In App Platform, the local filesystem on the host instances running App Platform containers is ephemeral. When deployments happen or containers are replaced the local disk storage will be LOST and not recoverable. To use App Platform you must re-implement or reconfigure your app to use other forms of persistent storage such as Spaces (where you can save your images). The local disk should only be used as temporary storage.

You can take look at our sample Node.js app and its limitations at Link

Alternatively, you can choose to deploy your app in Droplet instead of App Platform. You can refer to the tutorial link below for more information:

How To Set Up a Node.js Application for Production

Best,
Dikshith

by Lisa Tagliaferri
by Kathleen Juell
Node.js is an open-source JavaScript runtime environment for building server-side and networking applications. The platform runs on Linux, macOS, FreeBSD, and Windows. Though you can run Node.js applications at the command line, this tutorial will…