Commit 934f8dcecad0d5451a0aceed63f10f03992bc261

Authored by AntonioTerceiro
1 parent a8d2985b

ActionItem154: only create a domain in production environment


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1418 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 7 additions and 3 deletions   Show diff stats
script/anhetegua
@@ -56,9 +56,13 @@ EOF @@ -56,9 +56,13 @@ EOF
56 56
57 57
58 env = Environment.create!(:name => 'Anheteguá', :is_default => true, :description => environment_description) 58 env = Environment.create!(:name => 'Anheteguá', :is_default => true, :description => environment_description)
59 -domain = Domain.new(:name => 'ecosol.noosfero.com.br')  
60 -domain.owner = env  
61 -domain.save! 59 +
  60 +# on production (i.e. anhetegua demo site, use a real domain)
  61 +if ENV['RAILS_ENV'] == 'production'
  62 + domain = Domain.new(:name => 'ecosol.noosfero.com.br')
  63 + domain.owner = env
  64 + domain.save!
  65 +end
62 66
63 tematicas = new_category(nil, 'Temáticas', 1) 67 tematicas = new_category(nil, 'Temáticas', 1)
64 new_category(tematicas, 'Finanças Solidárias') 68 new_category(tematicas, 'Finanças Solidárias')