let Gemfile can change at restore or backup
This commit is contained in:
parent
f9eb64bc72
commit
19dc9d0779
|
@ -170,7 +170,7 @@ class Admin::SitesController < OrbitAdminController
|
||||||
git_add_except_public = Dir['*'].select{|v| v!= 'public'}.collect do |v|
|
git_add_except_public = Dir['*'].select{|v| v!= 'public'}.collect do |v|
|
||||||
"#{git} add -f '#{v}'"
|
"#{git} add -f '#{v}'"
|
||||||
end.join(' && ')
|
end.join(' && ')
|
||||||
git_add_custom = (Dir['*'].select{|v| v !='app' && v != 'lib' && v != 'config' && v != 'public'} + ['app/templates','config/mongoid.yml']).collect do |v|
|
git_add_custom = (Dir['*'].select{|v| v!= 'Gemfile' && v !='app' && v != 'lib' && v != 'config' && v != 'public'} + ['app/templates','config/mongoid.yml']).collect do |v|
|
||||||
"#{git} add -f --all '#{v}'"
|
"#{git} add -f --all '#{v}'"
|
||||||
end.join(' && ')
|
end.join(' && ')
|
||||||
git_add_all_program = (Dir['app/*'].select{|v| !v.include? 'templates'} + Dir['lib/*'] + Dir['config/*'].select{|v| !v.include? 'mongoid.yml'}).collect do |v|
|
git_add_all_program = (Dir['app/*'].select{|v| !v.include? 'templates'} + Dir['lib/*'] + Dir['config/*'].select{|v| !v.include? 'mongoid.yml'}).collect do |v|
|
||||||
|
|
Loading…
Reference in New Issue