DEV Community

Discussion on: Installing Forem/Dev using Docker on Ubuntu

Collapse
 
sohahm profile image
Sohail Ahmed

I would like to deploy it in production and I understand that I need to copy .env_sample as .env and add values but what about docker-compose.yml? It has RAILS_ENV, DATABASE_URL, and many things set as development. Do I have to modify it as well?

Please advise. Thank you.

Thread Thread
 
akhilnaidu profile image
Akhil Naidu

No need to modify system-oriented variables, by default in a system like Heroku the environmental variables of rails are configured as production. All you have to do is configure .env file.

Also just having a .env is not sufficient, you need to configure everything in it. Take for example the Cloudinary, Honey badger, Fastly, Pusher, Honeycomb, AWS.. All of them have to be configured.