search for: fix_hashbangs

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

2006 Apr 21
9
Capistrano, OS X
...via DarwinPorts, the hashbang lines at the top of your dispatch.* scripts says "#!/opt/local/bin/ruby". This is a problem, if you''re deployin via Capistrano to a host with a different path to ruby (which would be practially all of them:-) Here''s a fix. Add this "fix_hashbangs.rb" script to your script directory. Don''t forget to make it executable, and check it in to your Subversion repository. #!/usr/bin/env ruby current_path = ARGV[0] new_hashbang = ARGV[1] f_names = %w(dispatch.cgi dispatch.rb dispatch.fcgi) f_names.each do |name| puts `ls -al &qu...