Report this

What is the reason for this report?

Adding .env file to DigitalOcean Ubuntu droplet

Posted on February 25, 2021

I am deploying an MERN application to DigitalOcean for the first time. I’ve previously always deployed my apps via Heroku. I’m trying to figure out the best way to handle the variables in the .env file. Is it okay to directly upload a .env file to the DO server? Will those variables remain private? If so, can anyone point me in the right direction for creating a .env file with the variable information in it from an Ubuntu command line?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.