remove update app feature
This commit is contained in:
parent
9ad9d9df28
commit
6845f12821
|
@ -101,7 +101,8 @@ if old_gemfile_text != new_gemfile_text
|
||||||
puts 'updating gemfile'
|
puts 'updating gemfile'
|
||||||
Bundler.with_clean_env{%x[cp -f '#{env_pwd}'/Gemfile '#{env_pwd}'/Gemfile.bak123]}
|
Bundler.with_clean_env{%x[cp -f '#{env_pwd}'/Gemfile '#{env_pwd}'/Gemfile.bak123]}
|
||||||
Bundler.with_clean_env{%x[cp -f '#{app_path}'/temp_file/Gemfile '#{env_pwd}'/Gemfile]}
|
Bundler.with_clean_env{%x[cp -f '#{app_path}'/temp_file/Gemfile '#{env_pwd}'/Gemfile]}
|
||||||
command4 = "cp -rf #{app_path}/temp_file/app #{env_pwd}"
|
#command4 = ";cp -rf #{app_path}/temp_file/app #{env_pwd}"
|
||||||
|
command4 = ""
|
||||||
log_development = File.mtime(env_pwd+'/log/development.log').strftime('%Y%m%d%H%M').to_i rescue 0
|
log_development = File.mtime(env_pwd+'/log/development.log').strftime('%Y%m%d%H%M').to_i rescue 0
|
||||||
log_production = File.mtime(env_pwd+'/log/production.log').strftime('%Y%m%d%H%M').to_i rescue 0
|
log_production = File.mtime(env_pwd+'/log/production.log').strftime('%Y%m%d%H%M').to_i rescue 0
|
||||||
if log_development > log_production
|
if log_development > log_production
|
||||||
|
@ -137,7 +138,7 @@ if old_gemfile_text != new_gemfile_text
|
||||||
f.puts exist_str
|
f.puts exist_str
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
all_command = "#{install_cmd} #{command1} ; #{command4} "
|
all_command = "#{install_cmd} #{command1} #{command4} "
|
||||||
watch_dog_cmd = "watch -n 30 \'unset UNICORN_FD && bundle exec #{unicorn_rails} -c config/unicorn.rb -D -E #{mode}\'"
|
watch_dog_cmd = "watch -n 30 \'unset UNICORN_FD && bundle exec #{unicorn_rails} -c config/unicorn.rb -D -E #{mode}\'"
|
||||||
#file = File.new(File.join(env_pwd,'bundle_update_background.sh'),"w")
|
#file = File.new(File.join(env_pwd,'bundle_update_background.sh'),"w")
|
||||||
#file.write(all_command)
|
#file.write(all_command)
|
||||||
|
@ -161,7 +162,7 @@ else
|
||||||
if watch_dog.scan("auto_reopen_#{dir_name}").count != 0
|
if watch_dog.scan("auto_reopen_#{dir_name}").count != 0
|
||||||
Bundler.with_clean_env{%x[screen -ls | grep auto_reopen_#{dir_name} | cut -d. -f1 | awk '{print $1}' | xargs kill]}
|
Bundler.with_clean_env{%x[screen -ls | grep auto_reopen_#{dir_name} | cut -d. -f1 | awk '{print $1}' | xargs kill]}
|
||||||
end
|
end
|
||||||
system("cp -rf #{app_path}/temp_file/app #{env_pwd}")
|
#system("cp -rf #{app_path}/temp_file/app #{env_pwd}")
|
||||||
end
|
end
|
||||||
# Describe your gem and declare its dependencies:
|
# Describe your gem and declare its dependencies:
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
|
|
Loading…
Reference in New Issue