Skip to content
Snippets Groups Projects
Commit a6028734 authored by ilya's avatar ilya
Browse files

not overwriting app config if it already exists

parent 606a6bb4
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,8 @@ def create
#set pod url
username = backer_info[backer_number]['username'].gsub(/ /,'').downcase
set_app_config username
set_app_config username unless File.exists?(Rails.root.join('config', 'app_config.yml'))
require File.join(File.dirname(__FILE__), "..", "..", "config", "initializers", "_load_app_config.rb")
# Create seed user
......
......@@ -15,7 +15,9 @@ def set_app_config username
end
username = "tom"
set_app_config username
set_app_config username unless File.exists?(Rails.root.join('config', 'app_config.yml'))
require Rails.root.join('config', "initializers", "_load_app_config.rb")
# Create seed user
user = User.build( :email => "tom@tom.joindiaspora.com",
......
......@@ -14,7 +14,8 @@ def set_app_config username
file.close
end
set_app_config "tom"
set_app_config "tom" unless File.exists?(Rails.root.join('config', 'app_config.yml'))
require 'config/initializers/_load_app_config.rb'
# Create seed user
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment