From 310af047db350d46bcdcd7c195ea26836985fa03 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 4 Jan 2022 16:47:51 +0100 Subject: [PATCH] Remove deploy, not needed for github pages (might be switched back later) --- Gemfile | 1 - Gemfile.lock | 9 --------- config.rb | 52 ---------------------------------------------------- 3 files changed, 62 deletions(-) diff --git a/Gemfile b/Gemfile index 58fac14..5ed42f2 100644 --- a/Gemfile +++ b/Gemfile @@ -7,7 +7,6 @@ gem "middleman", "~> 4" gem "middleman-livereload" gem 'middleman-sprockets' -gem 'middleman-deploy' # favicon support (favicon PNG should be 144×144) gem "middleman-favicon-maker" diff --git a/Gemfile.lock b/Gemfile.lock index 56ba4d2..4f312ba 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -95,10 +95,6 @@ GEM toml uglifier (~> 3.0) webrick - middleman-deploy (1.0.0) - middleman-core (>= 3.2) - net-sftp - ptools middleman-favicon-maker (4.1.0) favicon_maker (~> 1.3, >= 1.3.1) middleman-core (~> 4.0) @@ -113,9 +109,6 @@ GEM middleman-core (>= 3.2) rouge (~> 3.2) minitest (5.15.0) - net-sftp (3.0.0) - net-ssh (>= 5.0.0, < 7.0.0) - net-ssh (6.1.0) nokogiri (1.12.5-x86_64-linux) racc (~> 1.4) oj (3.13.10) @@ -127,7 +120,6 @@ GEM padrino-support (0.15.1) parallel (1.21.0) parslet (2.0.0) - ptools (1.4.2) public_suffix (4.0.6) racc (1.6.0) rack (2.2.3) @@ -178,7 +170,6 @@ DEPENDENCIES font-awesome-middleman kramdown middleman (~> 4) - middleman-deploy middleman-favicon-maker middleman-livereload middleman-sprockets diff --git a/config.rb b/config.rb index c23a0c5..9198ea5 100644 --- a/config.rb +++ b/config.rb @@ -193,56 +193,4 @@ end end -### -# Deployment -## - -if data.site.openshift - os_token, os_host = data.site.openshift.match(/([0-9a-f]+)@([^\/]+)/).captures - - deploy_config = { - method: :rsync, - user: os_token, - host: os_host, - path: "/var/lib/openshift/#{os_token}/app-root/repo/public", - clean: true, # remove orphaned files on remote host - build_before: true # default false - } - -elsif data.site.rsync - rsync = URI.parse(data.site.rsync) - - deploy_config = { - method: :rsync, - user: rsync.user || ENV["USER"], - host: rsync.host, - path: rsync.path, - port: rsync.port || 22, - clean: true, # remove orphaned files on remote host - build_before: true # default false - } - -else - # For OpenShift, - # - # 1) use the barebones httpd cartridge from: - # http://cartreflect-claytondev.rhcloud.com/reflect?github=stefanozanella/openshift-cartridge-httpd - # (Add as URL at the bottom of the create from cartridge page) - # - # 2) Copy your new site's git repo URL and use it for 'production': - # git remote add production OPENSHIFT_GIT_REMOTE_HERE - # - # 3) Now, you can easily deploy to your new OpenShift site! - # bundle exec middleman deploy - - deploy_config = { - method: :git, - remote: 'production', - branch: 'master', - build_before: true # default false - } -end -activate :deploy do |deploy| - deploy_config.each { |key, val| deploy[key] = val } -end