ruby on rails - updating the robots -


ok want add this

user-agent: * disallow: / 

to robots.txt in enviroments other production...any idea on best want this. should remove public folder , create routes/views

i using rails 3.0.14 prior asset pipeline...any suggestions

here's real working code project (it's nginx config, not robots.txt, idea should clear).

task :nginx_config   conf = <<-conf    server {       listen 80;       client_max_body_size 2m;        server_name #{domain_name};        -- snip --     }   conf    put conf, "/etc/nginx/sites-available/#{application}_#{rails_env}" end 

so, basically, create content of file in string , put desired path. make capistrano upload content through sftp.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -