Skip to content

Commit 310af04

Browse files
committed
Remove deploy, not needed for github pages
(might be switched back later)
1 parent 74acc36 commit 310af04

3 files changed

Lines changed: 0 additions & 62 deletions

File tree

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ gem "middleman", "~> 4"
77

88
gem "middleman-livereload"
99
gem 'middleman-sprockets'
10-
gem 'middleman-deploy'
1110

1211
# favicon support (favicon PNG should be 144×144)
1312
gem "middleman-favicon-maker"

Gemfile.lock

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,6 @@ GEM
9595
toml
9696
uglifier (~> 3.0)
9797
webrick
98-
middleman-deploy (1.0.0)
99-
middleman-core (>= 3.2)
100-
net-sftp
101-
ptools
10298
middleman-favicon-maker (4.1.0)
10399
favicon_maker (~> 1.3, >= 1.3.1)
104100
middleman-core (~> 4.0)
@@ -113,9 +109,6 @@ GEM
113109
middleman-core (>= 3.2)
114110
rouge (~> 3.2)
115111
minitest (5.15.0)
116-
net-sftp (3.0.0)
117-
net-ssh (>= 5.0.0, < 7.0.0)
118-
net-ssh (6.1.0)
119112
nokogiri (1.12.5-x86_64-linux)
120113
racc (~> 1.4)
121114
oj (3.13.10)
@@ -127,7 +120,6 @@ GEM
127120
padrino-support (0.15.1)
128121
parallel (1.21.0)
129122
parslet (2.0.0)
130-
ptools (1.4.2)
131123
public_suffix (4.0.6)
132124
racc (1.6.0)
133125
rack (2.2.3)
@@ -178,7 +170,6 @@ DEPENDENCIES
178170
font-awesome-middleman
179171
kramdown
180172
middleman (~> 4)
181-
middleman-deploy
182173
middleman-favicon-maker
183174
middleman-livereload
184175
middleman-sprockets

config.rb

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -193,56 +193,4 @@
193193
end
194194
end
195195

196-
###
197-
# Deployment
198-
##
199-
200-
if data.site.openshift
201-
os_token, os_host = data.site.openshift.match(/([0-9a-f]+)@([^\/]+)/).captures
202-
203-
deploy_config = {
204-
method: :rsync,
205-
user: os_token,
206-
host: os_host,
207-
path: "/var/lib/openshift/#{os_token}/app-root/repo/public",
208-
clean: true, # remove orphaned files on remote host
209-
build_before: true # default false
210-
}
211-
212-
elsif data.site.rsync
213-
rsync = URI.parse(data.site.rsync)
214-
215-
deploy_config = {
216-
method: :rsync,
217-
user: rsync.user || ENV["USER"],
218-
host: rsync.host,
219-
path: rsync.path,
220-
port: rsync.port || 22,
221-
clean: true, # remove orphaned files on remote host
222-
build_before: true # default false
223-
}
224-
225-
else
226-
# For OpenShift,
227-
#
228-
# 1) use the barebones httpd cartridge from:
229-
# http://cartreflect-claytondev.rhcloud.com/reflect?github=stefanozanella/openshift-cartridge-httpd
230-
# (Add as URL at the bottom of the create from cartridge page)
231-
#
232-
# 2) Copy your new site's git repo URL and use it for 'production':
233-
# git remote add production OPENSHIFT_GIT_REMOTE_HERE
234-
#
235-
# 3) Now, you can easily deploy to your new OpenShift site!
236-
# bundle exec middleman deploy
237-
238-
deploy_config = {
239-
method: :git,
240-
remote: 'production',
241-
branch: 'master',
242-
build_before: true # default false
243-
}
244-
end
245196

246-
activate :deploy do |deploy|
247-
deploy_config.each { |key, val| deploy[key] = val }
248-
end

0 commit comments

Comments
 (0)