Skip to content

Instantly share code, notes, and snippets.

@adambray
Created October 29, 2013 21:15
Show Gist options
  • Save adambray/7222763 to your computer and use it in GitHub Desktop.
Save adambray/7222763 to your computer and use it in GitHub Desktop.
task :prefix_initializer do
prefix_config_file =<<-EOF
Reservations::Application.configure do
config.action_controller.relative_url_root = '/#{application_prefix}'
end
EOF
run "mkdir -p #{shared_path}/config"
put prefix_config_file, "#{shared_path}/config/prefix.rb"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment