Browse Source

Fix linting issues with capistrano

tags/0.3.6^2
Bèr Kessels 1 month ago
parent
commit
495e342f24
3 changed files with 15 additions and 18 deletions
  1. 7
    5
      Capfile
  2. 5
    12
      config/deploy.rb
  3. 3
    1
      config/deploy/production.rb

+ 7
- 5
Capfile View File

@@ -1,13 +1,15 @@
# frozen_string_literal: true

# Load DSL and set up stages
require "capistrano/setup"
require 'capistrano/setup'

# Include default deployment tasks
require "capistrano/deploy"
require 'capistrano/deploy'

require "capistrano/scm/git"
require 'capistrano/scm/git'
install_plugin Capistrano::SCM::Git

require "capistrano/bundler"
require 'capistrano/bundler'

# Load custom tasks from `lib/capistrano/tasks` if you have any defined
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r }
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }

+ 5
- 12
config/deploy.rb View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true

# config valid for current version and patch releases of Capistrano
lock '~> 3.14.1'

@@ -8,14 +10,7 @@ set :repo_url, 'ssh://gitea@git.webschuur.com:2222/placebazaar/hours.git'
ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp

# Default deploy_to directory is /var/www/my_app_name
set :deploy_to, "/u/apps/webapp"

# Default value for :format is :airbrussh.
# set :format, :airbrussh

# You can configure the Airbrussh format using :format_options.
# These are the defaults.
# set :format_options, command_output: true, log_file: "log/capistrano.log", color: :auto, truncate: :auto
set :deploy_to, '/u/apps/webapp'

# Default value for :pty is false
set :pty, true
@@ -24,7 +19,8 @@ set :pty, true
# append :linked_files, "config/database.yml"

# Default value for linked_dirs is []
# append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "public/system"
# append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets",
# "public/system"
append :linked_dirs, '.bundle'

# Default value for default_env is {}
@@ -36,9 +32,6 @@ append :linked_dirs, '.bundle'
# Default value for keep_releases is 5
# set :keep_releases, 5

# Uncomment the following to require manually verifying the host key before first deploy.
# set :ssh_options, verify_host_key: :secure
#
namespace :systemd do
desc 'Reload service'
task :reload do

+ 3
- 1
config/deploy/production.rb View File

@@ -1 +1,3 @@
server "toekomstige.tijden.org", user: "deploy", roles: %w{app web}
# frozen_string_literal: true

server 'toekomstige.tijden.org', user: 'deploy', roles: %w[app web]

Loading…
Cancel
Save