Add .use_local_gemfile in site folder to skip override Gemfile.
This commit is contained in:
parent
7917c8a2f3
commit
c74f9f3721
|
@ -32,6 +32,7 @@ if bundle_update_flag
|
|||
template_path = env_pwd + '/app/templates'
|
||||
all_template = Dir.glob(template_path+'/*/')
|
||||
puts 'editing files for sassc'
|
||||
use_local_gemfile = File.exist?(env_pwd + '/.use_local_gemfile')
|
||||
new_gemfile_text = File.read(app_path+'/temp_file/Gemfile')
|
||||
old_gemfile_text = File.read(env_pwd+'/Gemfile')
|
||||
check_texts = ['@import "../../bootstrap/variables";',".response-content {\n justify-self: auto;\n}\n"]
|
||||
|
@ -175,7 +176,7 @@ if bundle_update_flag
|
|||
end
|
||||
end
|
||||
end
|
||||
if old_gemfile_text != new_gemfile_text
|
||||
if !use_local_gemfile && old_gemfile_text != new_gemfile_text
|
||||
unicorn_rails = %x[which unicorn_rails].sub("\n",'')
|
||||
puts 'updating gemfile'
|
||||
if Dir["#{env_pwd}/config/secrets.yml"].length==0
|
||||
|
|
Loading…
Reference in New Issue