No awards yet.


2 Posts
  • Published Question

    My server only works on localhost but not works on ip address.

    Hello, I'm using ubuntu 20.04 droplet. I've seen many tutorials that talked me that I don't need many things to see my app run on the internet. They said that just run "pm2 start appname" and then I can see my website...
    3 By pajaritomoyqi Networking DigitalOcean Droplets Ubuntu 20.04 Nginx
  • Published Question

    how can i set environment variable in droplet? (not using app platform)

    I'm now trying to deploy my app using droplet. Is that okay to put all of environment variables(i.e. dbpassword) in .env file because i'm the only one who can access to my server with ssh and passphrase? Or is there a...
    Accepted Answer: Hi there @pajaritomoyqi, Yes, as long as the .env file is not accessible via the web it should be OK. You just need to keep in mind that you should never add the .env file to your GitHub repository. Regards, Bobby
    1 By pajaritomoyqi DigitalOcean Droplets