prop_up 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +228 -0
- data/Rakefile +2 -0
- data/bin/prop +14 -0
- data/lib/prop/actions.rb +40 -0
- data/lib/prop/app_builder.rb +334 -0
- data/lib/prop/generators/app_generator.rb +212 -0
- data/lib/prop/version.rb +3 -0
- data/peg-leg-bates.jpg +0 -0
- data/prop.gemspec +31 -0
- data/templates/Gemfile_clean +56 -0
- data/templates/Guardfile +11 -0
- data/templates/Procfile +2 -0
- data/templates/README.md.erb +6 -0
- data/templates/_flashes.html.erb +5 -0
- data/templates/_javascript.html.erb +9 -0
- data/templates/application.css.scss +5 -0
- data/templates/background_jobs_rspec.rb +19 -0
- data/templates/bin_setup +25 -0
- data/templates/config_locales_en.yml +11 -0
- data/templates/database_cleaner_rspec.rb +21 -0
- data/templates/disable_xml_params.rb +3 -0
- data/templates/errors.rb +28 -0
- data/templates/factories_spec.rb +13 -0
- data/templates/factories_spec_rake_task.rb +9 -0
- data/templates/factory_girl_syntax_rspec.rb +3 -0
- data/templates/javascripts/prefilled_input.js +59 -0
- data/templates/postgresql_database.yml.erb +11 -0
- data/templates/prop_gitignore +15 -0
- data/templates/prop_layout.html.erb.erb +15 -0
- data/templates/rack_timeout.rb +1 -0
- data/templates/sample.env +2 -0
- data/templates/smtp.rb +10 -0
- data/templates/spec_helper.rb +31 -0
- data/templates/unicorn.rb +26 -0
- metadata +115 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
# https://devcenter.heroku.com/articles/rails-unicorn
|
2
|
+
|
3
|
+
worker_processes (ENV['WEB_CONCURRENCY'] || 3).to_i
|
4
|
+
timeout (ENV['WEB_TIMEOUT'] || 5).to_i
|
5
|
+
preload_app true
|
6
|
+
|
7
|
+
before_fork do |server, worker|
|
8
|
+
Signal.trap 'TERM' do
|
9
|
+
puts 'Unicorn master intercepting TERM and sending myself QUIT instead'
|
10
|
+
Process.kill 'QUIT', Process.pid
|
11
|
+
end
|
12
|
+
|
13
|
+
if defined? ActiveRecord::Base
|
14
|
+
ActiveRecord::Base.connection.disconnect!
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
after_fork do |server, worker|
|
19
|
+
Signal.trap 'TERM' do
|
20
|
+
puts 'Unicorn worker intercepting TERM and doing nothing. Wait for master to sent QUIT'
|
21
|
+
end
|
22
|
+
|
23
|
+
if defined? ActiveRecord::Base
|
24
|
+
ActiveRecord::Base.establish_connection
|
25
|
+
end
|
26
|
+
end
|
metadata
ADDED
@@ -0,0 +1,115 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: prop_up
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Nathaniel Wroblewski
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-09-29 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 4.0.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 4.0.0
|
41
|
+
description: |
|
42
|
+
Prop is a base Rails project that you can upgrade.
|
43
|
+
It is used to get a jump start on a working app.
|
44
|
+
email:
|
45
|
+
- nathanielwroblewski@gmail.com
|
46
|
+
executables:
|
47
|
+
- prop
|
48
|
+
extensions: []
|
49
|
+
extra_rdoc_files:
|
50
|
+
- README.md
|
51
|
+
- LICENSE
|
52
|
+
files:
|
53
|
+
- .gitignore
|
54
|
+
- Gemfile
|
55
|
+
- LICENSE
|
56
|
+
- README.md
|
57
|
+
- Rakefile
|
58
|
+
- bin/prop
|
59
|
+
- lib/prop/actions.rb
|
60
|
+
- lib/prop/app_builder.rb
|
61
|
+
- lib/prop/generators/app_generator.rb
|
62
|
+
- lib/prop/version.rb
|
63
|
+
- peg-leg-bates.jpg
|
64
|
+
- prop.gemspec
|
65
|
+
- templates/Gemfile_clean
|
66
|
+
- templates/Guardfile
|
67
|
+
- templates/Procfile
|
68
|
+
- templates/README.md.erb
|
69
|
+
- templates/_flashes.html.erb
|
70
|
+
- templates/_javascript.html.erb
|
71
|
+
- templates/application.css.scss
|
72
|
+
- templates/background_jobs_rspec.rb
|
73
|
+
- templates/bin_setup
|
74
|
+
- templates/config_locales_en.yml
|
75
|
+
- templates/database_cleaner_rspec.rb
|
76
|
+
- templates/disable_xml_params.rb
|
77
|
+
- templates/errors.rb
|
78
|
+
- templates/factories_spec.rb
|
79
|
+
- templates/factories_spec_rake_task.rb
|
80
|
+
- templates/factory_girl_syntax_rspec.rb
|
81
|
+
- templates/javascripts/prefilled_input.js
|
82
|
+
- templates/postgresql_database.yml.erb
|
83
|
+
- templates/prop_gitignore
|
84
|
+
- templates/prop_layout.html.erb.erb
|
85
|
+
- templates/rack_timeout.rb
|
86
|
+
- templates/sample.env
|
87
|
+
- templates/smtp.rb
|
88
|
+
- templates/spec_helper.rb
|
89
|
+
- templates/unicorn.rb
|
90
|
+
homepage: https://github.com/NathanielWroblewski/prop
|
91
|
+
licenses:
|
92
|
+
- MIT
|
93
|
+
metadata: {}
|
94
|
+
post_install_message:
|
95
|
+
rdoc_options:
|
96
|
+
- --charset=UTF-8
|
97
|
+
require_paths:
|
98
|
+
- lib
|
99
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 2.0.0
|
104
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - '>='
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0'
|
109
|
+
requirements: []
|
110
|
+
rubyforge_project:
|
111
|
+
rubygems_version: 2.0.5
|
112
|
+
signing_key:
|
113
|
+
specification_version: 4
|
114
|
+
summary: Generate a Rails app using pre-configured best practices
|
115
|
+
test_files: []
|