My app needs to know where to store files but the path is different for
dev and production. What is the best way to do it?
something like $path = ‘/home/myrailsapp/public/files/’ in
development.rb and $path = ‘/home/my_remote_prod_sapp/public/files/’ in
do a test to check the env and add the path in application.rb?
do a test to check the env and add the path in the model files?