From 73c350f93c8be598aac4423e66ca4e7824b9a029 Mon Sep 17 00:00:00 2001 From: BOHUNG Date: Mon, 30 Sep 2019 19:28:52 +0800 Subject: [PATCH] add initialize module --- patchfile.gemspec | 7 +++++++ 1 file changed, 7 insertions(+) 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"