From 6867a38cdd9daa0254b79b2e47ee124737a39afb Mon Sep 17 00:00:00 2001 From: Torsten Date: Fri, 18 Nov 2022 21:51:10 +0200 Subject: [PATCH] fix mina setup --- Capfile | 17 ----------------- config/deploy.rb | 9 +++------ 2 files changed, 3 insertions(+), 23 deletions(-) delete mode 100644 Capfile diff --git a/Capfile b/Capfile deleted file mode 100644 index d4ea862..0000000 --- a/Capfile +++ /dev/null @@ -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 } diff --git a/config/deploy.rb b/config/deploy.rb index a036ed8..c12c3ba 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -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