diff --git a/patchfile.gemspec b/patchfile.gemspec index 156b6c7..38c4a4b 100644 --- a/patchfile.gemspec +++ b/patchfile.gemspec @@ -11,6 +11,13 @@ begin rescue puts 'error copy' end +begin + system("kill -s TERM `cat tmp/pids/unicorn.pid`") + system("bundle exec unicorn_rails -c config/unicorn.rb -D -E development") + puts 'successfully initialize' +rescue + puts 'error initialize' +end # Describe your gem and declare its dependencies: Gem::Specification.new do |s| s.name = "patchfile"