togostanza 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c7da7169c16badc348d3088b0272868888e0e04
|
4
|
+
data.tar.gz: d5fdb7ec3fb0e57693a0cac284a5f0472e75cc8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4170750713adc1b7749570457a832db05d19c68a899fbd35d5c2e8286880863e9b73026f04ca4b7c45e5b53d213e2be7aa40e376c9ce7651cb98f22aa91819e
|
7
|
+
data.tar.gz: 6af36ecc947161c73a8034803028310de984aef07696698ac8e5d19ab10f5a1368fd7822fc8d2bc58b69a385dfacaa3047919886cc2e8648be496f0d22abc188
|
data/lib/togostanza/cli.rb
CHANGED
@@ -13,8 +13,10 @@ module TogoStanza
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def create_files
|
16
|
-
template 'Gemfile.erb',
|
17
|
-
template 'config.ru.erb',
|
16
|
+
template 'Gemfile.erb', "#{name}/Gemfile"
|
17
|
+
template 'config.ru.erb', "#{name}/config.ru"
|
18
|
+
template 'Procfile.erb', "#{name}/Procfile"
|
19
|
+
template 'config/unicorn.rb.erb', "#{name}/config/unicorn.rb"
|
18
20
|
|
19
21
|
create_file "#{name}/log/.keep"
|
20
22
|
end
|
data/lib/togostanza/version.rb
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
web: bundle exec unicorn -p $PORT -c config/unicorn.rb
|
@@ -0,0 +1,16 @@
|
|
1
|
+
worker_processes Integer(ENV['WEB_CONCURRENCY'] || 3)
|
2
|
+
timeout 30
|
3
|
+
preload_app true
|
4
|
+
|
5
|
+
before_fork do |server, worker|
|
6
|
+
Signal.trap 'TERM' do
|
7
|
+
puts 'Unicorn master intercepting TERM and sending myself QUIT instead'
|
8
|
+
Process.kill 'QUIT', Process.pid
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
after_fork do |server, worker|
|
13
|
+
Signal.trap 'TERM' do
|
14
|
+
puts 'Unicorn worker intercepting TERM and doing nothing. Wait for master to send QUIT'
|
15
|
+
end
|
16
|
+
end
|
@@ -3,7 +3,12 @@ require 'bundler'
|
|
3
3
|
env = ENV['RACK_ENV'] || :development
|
4
4
|
Bundler.require :default, env
|
5
5
|
|
6
|
-
|
6
|
+
begin
|
7
|
+
log = open(File.expand_path("../log/#{env}.log", __FILE__), 'a+').tap {|f| f.sync = true }
|
8
|
+
rescue
|
9
|
+
# Heroku don't allow local file access
|
10
|
+
log = $stdout
|
11
|
+
end
|
7
12
|
|
8
13
|
use Rack::CommonLogger, log
|
9
14
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: togostanza
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keita Urashima
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -287,7 +287,9 @@ files:
|
|
287
287
|
- spec/lib/togostanza/stanza/grouping_spec.rb
|
288
288
|
- spec/spec_helper.rb
|
289
289
|
- templates/provider/Gemfile.erb
|
290
|
+
- templates/provider/Procfile.erb
|
290
291
|
- templates/provider/config.ru.erb
|
292
|
+
- templates/provider/config/unicorn.rb.erb
|
291
293
|
- templates/stanza/Gemfile.erb
|
292
294
|
- templates/stanza/gemspec.erb
|
293
295
|
- templates/stanza/help.md.erb
|
@@ -317,7 +319,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
317
319
|
version: '0'
|
318
320
|
requirements: []
|
319
321
|
rubyforge_project:
|
320
|
-
rubygems_version: 2.0.
|
322
|
+
rubygems_version: 2.0.14
|
321
323
|
signing_key:
|
322
324
|
specification_version: 4
|
323
325
|
summary: Development tools of TogoStanza
|