From a5b53717eacb4fffc9815040d1d0aad474e2dd01 Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Tue, 3 Apr 2012 15:02:10 -0700 Subject: [PATCH] small typo fixes, in heroku and seed scripts [ci skip] --- db/seeds.rb | 2 +- lib/tasks/heroku.rake | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/db/seeds.rb b/db/seeds.rb index c6e1527ea..210864020 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -20,7 +20,7 @@ bob = Factory(:user_with_aspect, :username => "bob", :password => 'evankorth') eve = Factory(:user_with_aspect, :username => "eve", :password => 'evankorth') def url_hash(name) - image_url = "/assets/user/#{name}jpg" + image_url = "/assets/user/#{name}.jpg" { :image_url => image_url, :image_url_small => image_url, diff --git a/lib/tasks/heroku.rake b/lib/tasks/heroku.rake index 9030ec12e..18894d75a 100644 --- a/lib/tasks/heroku.rake +++ b/lib/tasks/heroku.rake @@ -9,7 +9,7 @@ namespace :heroku do task :generate_secret_token do puts "Generating and setting a new secret token" - token = SecureRandom.hex(40)#reloads secret token every time you reload vars.... this expires cookies, and kinda sucks + token = SecureRandom.hex(40) #reloads secret token every time you reload vars.... this expires cookies, and kinda sucks command = "#{HEROKU_CONFIG_ADD_COMMAND} SECRET_TOKEN=#{token}" puts command system command @@ -30,7 +30,7 @@ namespace :heroku do each_heroku_app do |stage| system("heroku labs:enable user_env_compile -a #{stage.app}") - stage.run('config:add', "#{fog} #{fog_provider} #{fog} #{aws_secret_access_key} #{aws_access_key_id} ASSET_HOST=#{asset_host}") + stage.run('config:add', "#{fog} #{fog_provider} #{aws_secret_access_key} #{aws_access_key_id} ASSET_HOST=#{asset_host}") end end end \ No newline at end of file