small typo fixes, in heroku and seed scripts [ci skip]
This commit is contained in:
parent
bb5aa2821d
commit
a5b53717ea
2 changed files with 3 additions and 3 deletions
|
|
@ -20,7 +20,7 @@ bob = Factory(:user_with_aspect, :username => "bob", :password => 'evankorth')
|
||||||
eve = Factory(:user_with_aspect, :username => "eve", :password => 'evankorth')
|
eve = Factory(:user_with_aspect, :username => "eve", :password => 'evankorth')
|
||||||
|
|
||||||
def url_hash(name)
|
def url_hash(name)
|
||||||
image_url = "/assets/user/#{name}jpg"
|
image_url = "/assets/user/#{name}.jpg"
|
||||||
{
|
{
|
||||||
:image_url => image_url,
|
:image_url => image_url,
|
||||||
:image_url_small => image_url,
|
:image_url_small => image_url,
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ namespace :heroku do
|
||||||
|
|
||||||
task :generate_secret_token do
|
task :generate_secret_token do
|
||||||
puts "Generating and setting a new secret token"
|
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}"
|
command = "#{HEROKU_CONFIG_ADD_COMMAND} SECRET_TOKEN=#{token}"
|
||||||
puts command
|
puts command
|
||||||
system command
|
system command
|
||||||
|
|
@ -30,7 +30,7 @@ namespace :heroku do
|
||||||
|
|
||||||
each_heroku_app do |stage|
|
each_heroku_app do |stage|
|
||||||
system("heroku labs:enable user_env_compile -a #{stage.app}")
|
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
|
end
|
||||||
end
|
end
|
||||||
Loading…
Reference in a new issue