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 7a2465b
Showing 1 changed file with 0 additions and 52 deletions.
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 7a2465b

Please sign in to comment.