slining 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/CONTRIBUTING.md +1 -1
- data/LICENSE +2 -2
- data/NEWS.md +67 -0
- data/README.md +32 -19
- data/RELEASING.md +19 -0
- data/bin/slining +3 -3
- data/lib/slining.rb +5 -4
- data/lib/slining/adapters/heroku.rb +67 -0
- data/lib/slining/app_builder.rb +109 -67
- data/lib/slining/generators/app_generator.rb +22 -5
- data/lib/slining/version.rb +1 -1
- data/slining.gemspec +1 -0
- data/spec/adapters/heroku_spec.rb +52 -0
- data/spec/features/heroku_spec.rb +56 -30
- data/spec/features/new_project_spec.rb +66 -4
- data/spec/spec_helper.rb +4 -1
- data/spec/support/fake_heroku.rb +5 -3
- data/spec/support/slining.rb +20 -12
- data/templates/Gemfile.erb +6 -4
- data/templates/Procfile +1 -1
- data/templates/README.md.erb +3 -7
- data/templates/bin_setup.erb +1 -11
- data/templates/capybara_webkit.rb +5 -0
- data/templates/circle.yml.erb +9 -0
- data/templates/{development_seeds.rb → dev.rake} +1 -1
- data/templates/disable_xml_params.rb +0 -2
- data/templates/dotfiles/.ctags +2 -0
- data/templates/factories.rb +2 -0
- data/templates/postgresql_database.yml.erb +11 -1
- data/templates/puma.rb +19 -0
- data/templates/rails_helper.rb +1 -2
- data/templates/sample.env +7 -3
- data/templates/shoulda_matchers_config_rspec.rb +6 -0
- data/templates/slining_gitignore +0 -1
- data/templates/spec_helper.rb +1 -0
- metadata +27 -8
- data/.travis.yml +0 -11
- data/Gemfile.lock +0 -123
- data/templates/travis.yml.erb +0 -21
- data/templates/unicorn.rb +0 -30
data/templates/travis.yml.erb
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
before_install:
|
|
2
|
-
- "echo '--colour' > ~/.rspec"
|
|
3
|
-
- "echo 'gem: --no-document' > ~/.gemrc"
|
|
4
|
-
- export DISPLAY=:99.0
|
|
5
|
-
- sh -e /etc/init.d/xvfb start
|
|
6
|
-
install:
|
|
7
|
-
- bin/setup
|
|
8
|
-
branches:
|
|
9
|
-
only:
|
|
10
|
-
- master
|
|
11
|
-
cache:
|
|
12
|
-
- bundler
|
|
13
|
-
language:
|
|
14
|
-
- ruby
|
|
15
|
-
notifications:
|
|
16
|
-
email: false
|
|
17
|
-
rvm:
|
|
18
|
-
- <%= Slining::RUBY_VERSION %>
|
|
19
|
-
addons:
|
|
20
|
-
postgresql: "9.3"
|
|
21
|
-
sudo: false
|
data/templates/unicorn.rb
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# https://devcenter.heroku.com/articles/rails-unicorn
|
|
2
|
-
|
|
3
|
-
worker_processes (ENV["UNICORN_WORKERS"] || 3).to_i
|
|
4
|
-
timeout (ENV["UNICORN_TIMEOUT"] || 15).to_i
|
|
5
|
-
preload_app true
|
|
6
|
-
|
|
7
|
-
before_fork do |_server, _worker|
|
|
8
|
-
Signal.trap "TERM" do
|
|
9
|
-
puts "Unicorn master intercepting TERM, 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, waiting for master to send QUIT"
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
if defined? ActiveRecord::Base
|
|
24
|
-
config = ActiveRecord::Base.configurations[Rails.env] ||
|
|
25
|
-
Rails.application.config.database_configuration[Rails.env]
|
|
26
|
-
config["reaping_frequency"] = (ENV["DB_REAPING_FREQUENCY"] || 10).to_i
|
|
27
|
-
config["pool"] = (ENV["DB_POOL"] || 2).to_i
|
|
28
|
-
ActiveRecord::Base.establish_connection(config)
|
|
29
|
-
end
|
|
30
|
-
end
|