lib/generators/teleport/capistrano.rb in teleporter-2.0.4 vs lib/generators/teleport/capistrano.rb in teleporter-2.0.6
- old
+ new
@@ -30,16 +30,22 @@
after: "require 'capistrano/rails/migrations'\n"
insert_into_file "Capfile",
"require 'capistrano/puma'\n",
after: "require 'capistrano/sidekiq'\n"
insert_into_file "Capfile",
- "require 'capistrano/puma/monit'\n",
+ %Q{
+require 'capistrano/puma'
+require 'capistrano/puma/workers'
+require 'capistrano/puma/jungle'
+require 'capistrano/puma/monit'
+require 'capistrano/puma/nginx'
+ },
after: "require 'capistrano/sidekiq'\n"
@app_name = ask 'App name', :bold, default: 'blog'
@git_repo_url = ask 'Git repo', :bold, default: 'git@github.com:itsNikolay/puma-testing.git'
@deploy_user = ask 'Deploy username default', :bold, default: 'deploy'
- @ruby_version = ask 'Ruby version', :bold, limited_to: ['2.1.4', '2.1.3', '2.1.2', '1.9.3']
+ @ruby_version = ask 'Ruby version', :bold, limited_to: ['2.1.5', '2.1.4', '2.1.3', '2.1.2', '1.9.3']
@production_server_address = ask 'Production server', :bold, default: '192.X.X.X'
template 'capistrano/deploy/deploy.rb', 'config/deploy.rb'
template 'capistrano/deploy/production.rb', 'config/deploy/production.rb'
if yes?('Add staging? (y/n)')