search for: my_remote_prod_sapp

Displaying 1 result from an estimated 1 matches for "my_remote_prod_sapp".

2006 Jul 30
3
Where to store filesystem path?
Hello, 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 production.rb? - 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? - something clever? -- Posted via http://www.ruby-forum.com/.