Extracted Capistrano files to separate repository
This commit is contained in:
13
Capfile
13
Capfile
@ -1,13 +0,0 @@
|
||||
require 'capistrano/setup'
|
||||
require 'capistrano/deploy'
|
||||
require 'capistrano/scm/git'
|
||||
require 'capistrano/puma'
|
||||
require 'capistrano/puma/nginx'
|
||||
require 'capistrano/rails'
|
||||
require 'capistrano/rvm'
|
||||
require 'capistrano/upload-config'
|
||||
require 'whenever/capistrano'
|
||||
|
||||
install_plugin Capistrano::SCM::Git
|
||||
install_plugin Capistrano::Puma
|
||||
install_plugin Capistrano::Puma::Nginx
|
5
Gemfile
5
Gemfile
@ -49,11 +49,6 @@ group :development, :staging do
|
||||
gem 'listen'
|
||||
gem 'better_errors'
|
||||
gem 'binding_of_caller'
|
||||
gem 'capistrano'
|
||||
gem 'capistrano3-puma'
|
||||
gem 'capistrano-rails'
|
||||
gem 'capistrano-rvm'
|
||||
gem 'capistrano-upload-config'
|
||||
gem 'pry-rails'
|
||||
gem 'rack-mini-profiler'
|
||||
gem 'rubocop', require: false
|
||||
|
32
Gemfile.lock
32
Gemfile.lock
@ -65,8 +65,6 @@ GEM
|
||||
tzinfo (~> 1.1)
|
||||
addressable (2.7.0)
|
||||
public_suffix (>= 2.0.2, < 5.0)
|
||||
airbrussh (1.4.0)
|
||||
sshkit (>= 1.6.1, != 1.7.0)
|
||||
amq-protocol (2.3.0)
|
||||
arel (9.0.0)
|
||||
ast (2.4.0)
|
||||
@ -91,25 +89,6 @@ GEM
|
||||
bunny (2.14.3)
|
||||
amq-protocol (~> 2.3, >= 2.3.0)
|
||||
byebug (11.0.1)
|
||||
capistrano (3.11.2)
|
||||
airbrussh (>= 1.0.0)
|
||||
i18n
|
||||
rake (>= 10.0.0)
|
||||
sshkit (>= 1.9.0)
|
||||
capistrano-bundler (1.6.0)
|
||||
capistrano (~> 3.1)
|
||||
capistrano-rails (1.4.0)
|
||||
capistrano (~> 3.1)
|
||||
capistrano-bundler (~> 1.1)
|
||||
capistrano-rvm (0.1.2)
|
||||
capistrano (~> 3.0)
|
||||
sshkit (~> 1.2)
|
||||
capistrano-upload-config (0.8.2)
|
||||
capistrano (>= 3.0)
|
||||
capistrano3-puma (4.0.0)
|
||||
capistrano (~> 3.7)
|
||||
capistrano-bundler
|
||||
puma (~> 4.0)
|
||||
capybara (3.30.0)
|
||||
addressable
|
||||
mini_mime (>= 0.1.3)
|
||||
@ -217,9 +196,6 @@ GEM
|
||||
multi_json (1.14.1)
|
||||
multi_xml (0.6.0)
|
||||
multipart-post (2.1.1)
|
||||
net-scp (2.0.0)
|
||||
net-ssh (>= 2.6.5, < 6.0.0)
|
||||
net-ssh (5.2.0)
|
||||
netrc (0.11.0)
|
||||
newrelic_rpm (6.8.0.360)
|
||||
nio4r (2.5.2)
|
||||
@ -396,9 +372,6 @@ GEM
|
||||
actionpack (>= 4.0)
|
||||
activesupport (>= 4.0)
|
||||
sprockets (>= 3.0.0)
|
||||
sshkit (1.20.0)
|
||||
net-scp (>= 1.1.2)
|
||||
net-ssh (>= 2.8.0)
|
||||
structured_warnings (0.4.0)
|
||||
temple (0.8.2)
|
||||
thor (1.0.1)
|
||||
@ -450,11 +423,6 @@ DEPENDENCIES
|
||||
binding_of_caller
|
||||
bootsnap
|
||||
bootstrap-will_paginate
|
||||
capistrano
|
||||
capistrano-rails
|
||||
capistrano-rvm
|
||||
capistrano-upload-config
|
||||
capistrano3-puma
|
||||
capybara
|
||||
carrierwave
|
||||
concurrent-ruby
|
||||
|
@ -1,36 +0,0 @@
|
||||
set :application, 'code_ocean'
|
||||
set :config_example_suffix, '.example'
|
||||
set :default_env, 'PATH' => '/usr/java/jdk1.8.0_40/bin:$PATH'
|
||||
set :deploy_to, '/var/www/app'
|
||||
set :keep_releases, 3
|
||||
set :linked_dirs, %w(log public/uploads tmp/cache tmp/files tmp/pids tmp/sockets)
|
||||
set :linked_files, %w(config/action_mailer.yml config/docker.yml.erb config/code_ocean.yml config/database.yml config/newrelic.yml config/secrets.yml config/sendmail.yml config/smtp.yml config/mnemosyne.yml)
|
||||
set :log_level, :info
|
||||
set :puma_threads, [0, 16]
|
||||
set :puma_workers, 4
|
||||
set :puma_preload_app, true
|
||||
set :repo_url, 'git@github.com:openHPI/codeocean.git'
|
||||
|
||||
set :whenever_identifier, ->{ "#{fetch(:application)}_#{fetch(:stage)}" }
|
||||
|
||||
namespace :deploy do
|
||||
before 'check:linked_files', 'config:push'
|
||||
|
||||
after :compile_assets, :copy_vendor_assets do
|
||||
on roles(fetch(:assets_roles)) do
|
||||
within release_path do
|
||||
execute :cp, '-r', 'vendor/assets/javascripts/ace', 'public/assets/'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
task :create_whenever_log_dir do
|
||||
on roles(:all) do
|
||||
within release_path do
|
||||
execute :mkdir, '-p', 'log/whenever'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
after :deploy, 'deploy:create_whenever_log_dir'
|
@ -1 +0,0 @@
|
||||
server 'codeocean.openhpi.de', roles: [:app, :db, :puma_nginx, :web], user: 'codeocean'
|
@ -1,3 +0,0 @@
|
||||
server '10.210.0.50', roles: [:app, :db, :puma_nginx, :web], user: 'debian'
|
||||
set :rails_env, "staging"
|
||||
set :branch, ENV['BRANCH'] if ENV['BRANCH']
|
Reference in New Issue
Block a user