title: How to set up and use Rails environment variables in production server?
body: <p>I need to set up an environment variable for my rails app. Both in my local machine and in the production server. I read some tutorials on the internet but NONE has given the complete instruction on how to set and use these variable in the actual production server. I use digital ocean and linux server to host my rails app. </p>
  
  <p>I have spent days trying to figure this out, but still haven't found a clear and complete instruction from setting the variables on my local machine -> push it to git repo -> set and use the variables in production server. So, hope somebody can help me here, thanks!  </p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>This is how I currently setup the environment variables in my rails app by using figoro gem:</p>
  
  <p><a href="https://i.stack.imgur.com/Cx9wV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Cx9wV.png" alt="enter image description here"></a></p>