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

fixed the deploy scripts

parent a594c9a3
No related branches found
No related tags found
No related merge requests found
......@@ -44,8 +44,8 @@ end
def set_app_config username
current_config = YAML.load(File.read(Rails.root.join('config', 'app_config.yml.example')))
current_config[Rails.env.to_s] ||= {}
current_config[Rails.env.to_s]['pod_url'] = "#{username}.joindiaspora.com"
current_config['default']['pod_url'] = "#{username}.joindiaspora.com"
current_config[Rails.env.to_s]['pod_url'] = "http://#{username}.joindiaspora.com/"
current_config['default']['pod_url'] = "http://#{username}.joindiaspora.com/"
file = File.new(Rails.root.join('..','..','shared','app_config.yml'),'w')
file.write(current_config.to_yaml)
file.close
......
......@@ -9,8 +9,8 @@ require 'config/environment'
def set_app_config username
current_config = YAML.load(File.read(Rails.root.join('config', 'app_config.yml.example')))
current_config[Rails.env.to_s] ||= {}
current_config[Rails.env.to_s]['pod_url'] = "#{username}.joindiaspora.com"
current_config['default']['pod_url'] = "#{username}.joindiaspora.com"
current_config[Rails.env.to_s]['pod_url'] = "http://#{username}.joindiaspora.com/"
current_config['default']['pod_url'] = "http://#{username}.joindiaspora.com/"
file = File.new(Rails.root.join('..','..','shared','app_config.yml'),'w')
file.write(current_config.to_yaml)
file.close
......
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