Skip to content

Commit

Permalink
Remove deploy, not needed for github pages
Browse files Browse the repository at this point in the history
(might be switched back later)
  • Loading branch information
mscherer committed Jan 4, 2022
1 parent 74acc36 commit 310af04
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 62 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 0 additions & 9 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -178,7 +170,6 @@ DEPENDENCIES
font-awesome-middleman
kramdown
middleman (~> 4)
middleman-deploy
middleman-favicon-maker
middleman-livereload
middleman-sprockets
Expand Down
52 changes: 0 additions & 52 deletions config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 310af04

Please sign in to comment.