This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'csv' | |
namespace :routes do | |
desc 'Print out defined routes into csv, with TARGET and PATTERN' | |
task :csv do |task| | |
routes_task = Rake::Task['routes'].invoke.first | |
routes = routes_task.call | |
target = ENV['TARGET'] || 'tmp/routes.csv' | |
CSV.open(target, 'wb') do |csv| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setting up a local solr instance on a mac | |
# install solr with homebrew | |
brew install solr | |
# create the base solr index directory | |
mkdir -p /data/solr | |
# make sure you can write to the solr logs | |
sudo chown -R `whoami` /usr/local/Cellar/solr/ |