fix mina setup

This commit is contained in:
Torsten 2022-11-18 21:51:10 +02:00
parent e415dcd681
commit 6867a38cdd
2 changed files with 3 additions and 23 deletions

17
Capfile
View File

@ -1,17 +0,0 @@
# Load DSL and set up stages
require "capistrano/setup"
# Include default deployment tasks
require "capistrano/deploy"
# Load the SCM plugin appropriate to your project:
require "capistrano/scm/git"
install_plugin Capistrano::SCM::Git
require "capistrano/rbenv"
require "capistrano/rails/assets"
require "capistrano/rails/migrations"
# require "capistrano/passenger"
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r }

View File

@ -1,7 +1,6 @@
require 'mina/rails'
require 'mina/git'
require 'mina/rbenv' # for rbenv support. (https://rbenv.org)
require "mina/whenever"
# Basic settings:
# domain - The hostname to SSH to.
@ -10,10 +9,10 @@ require "mina/whenever"
# branch - Branch name to deploy. (needed by mina/git)
set :application_name, 'gateway'
set :domain, '95.216.228.35'
set :domain, '192.168.129.10'
set :deploy_to, '/home/feenix/gateway'
set :repository, "https://github.com/rubydesign/gateway.git"
set :branch, 'main'
set :branch, 'master'
# Optional settings:
set :user, 'feenix' # Username in the server to SSH to.
@ -24,7 +23,7 @@ set :user, 'feenix' # Username in the server to SSH to.
# Some plugins already add folders to shared_dirs like `mina/rails` add `public/assets`, `vendor/bundle` and many more
# run `mina -d` to see all folders and files already included in `shared_dirs` and `shared_files`
set :shared_dirs, fetch(:shared_dirs, []).push('tmp/pids' , 'tmp/sockets')
set :shared_files, fetch(:shared_files, []).push('config/master.key' , 'config/letsencrypt.key')
set :shared_files, fetch(:shared_files, []).push('config/master.key')
# This task is the environment that is loaded for all remote run commands, such as
# `mina deploy` or `mina rake`.
@ -53,7 +52,6 @@ task :deploy do
invoke :'git:clone'
invoke :'deploy:link_shared_paths'
invoke :'bundle:install'
invoke :'rails:db_migrate'
invoke :'rails:assets_precompile'
invoke :'deploy:cleanup'
@ -61,7 +59,6 @@ task :deploy do
in_path(fetch(:current_path)) do
invoke :'passenger:restart'
end
invoke :'whenever:update'
end
end