Change Domain Name
This commit is contained in:
parent
69b2f8246f
commit
f88ff91d4f
|
|
@ -38,9 +38,9 @@ if bundle_update_flag
|
|||
check_texts = ['@import "../../bootstrap/variables";',".response-content {\n justify-self: auto;\n}\n"]
|
||||
git_url = bundler_with_clean_env{%x[cd '#{env_pwd}' && git config --get remote.origin.url].split("\n")[0]}
|
||||
git_remote = bundler_with_clean_env{%x[cd '#{env_pwd}' && git remote].split("\n")[0]}
|
||||
if !(git_url.include?('//ruling.digital/git')) && !(File.exist?("#{env_pwd}/custom_git.txt"))
|
||||
if !(git_url.include?('//orbithub.cloud/git')) && !(File.exist?("#{env_pwd}/custom_git.txt"))
|
||||
puts 'changing remote url'
|
||||
bundler_with_clean_env{system("cd #{env_pwd} && git remote set-url #{git_remote} https://ruling.digital/git")}
|
||||
bundler_with_clean_env{system("cd #{env_pwd} && git remote set-url #{git_remote} https://orbithub.cloud/git")}
|
||||
end
|
||||
default_announcement_widget_info = JSON.parse(File.read("#{app_path}/modules/announcement/info.json"))["widgets"].sort_by{|h| h["filename"].to_i} rescue []
|
||||
all_template.each do |folder|
|
||||
|
|
|
|||
Loading…
Reference in New Issue