diff --git a/bin/mount_rsync.sh b/bin/mount_rsync.sh index 80667de57..7ec3e296b 100755 --- a/bin/mount_rsync.sh +++ b/bin/mount_rsync.sh @@ -1,3 +1,5 @@ +#!/bin/bash + for f in `ls /srv/rosa_build/current/tmp/mount` do mkdir -p "/srv/rosa_build/shared/downloads/$f" diff --git a/bin/umount_rsync.sh b/bin/umount_rsync.sh index 928846c25..e70d48795 100755 --- a/bin/umount_rsync.sh +++ b/bin/umount_rsync.sh @@ -1,3 +1,5 @@ +#!/bin/bash + for f in `ls /srv/rosa_build/current/tmp/umount` do umount "/srv/rosa_build/shared/downloads/$f" diff --git a/config/initializers/load_config.rb b/config/initializers/load_config.rb index b9a801033..26da340bf 100644 --- a/config/initializers/load_config.rb +++ b/config/initializers/load_config.rb @@ -3,8 +3,8 @@ APP_CONFIG = YAML.load_file("#{Rails.root}/config/application.yml")[Rails.env] # Setup Smart HTTP GRack require 'grack' config = {:project_root => File.join(APP_CONFIG['root_path'], 'git_projects'), :git_path => '/opt/local/bin/git', :upload_pack => true, :receive_pack => true} -# Rosa::Application.config.middleware.insert_before ::ActionDispatch::Static, ::Grack::Handler, config -Rosa::Application.config.middleware.insert_after ::Rails::Rack::Logger, ::Grack::Handler, config +Rosa::Application.config.middleware.insert_before 0, ::Grack::Handler, config +# Rosa::Application.config.middleware.insert_after ::Rails::Rack::Logger, ::Grack::Handler, config Rosa::Application.config.middleware.insert_before ::Grack::Handler, ::Grack::Auth # Grit::Git.git_timeout = 60