Sha256: 0a762ee81c9728985c3713c6188233ba4531b108ae8081ee7779b41796f553ff

Contents?: true

Size: 753 Bytes

Versions: 1

Compression:

Stored size: 753 Bytes

Contents

#!/usr/bin/env ruby -wKU

site_folder = File.expand_path(".")
puts "In #{site_folder}.:"
puts `webgen`


timestamp = Time.now.to_i
deploy_folder = "#{site_folder}/deploy/#{timestamp}/kitabuntersandkasten"

 
`mkdir -p #{deploy_folder}`
if File.directory?(deploy_folder)
  puts "Local Deploy Folder: #{deploy_folder}"
else
  raise "Couldn't make deploy dir: #{deploy_folder}."
end

`cd #{site_folder}/out && cp -r * #{deploy_folder}`
puts Dir.entries(deploy_folder).join(" ")
if Dir.entries(deploy_folder).join(" ") =~ /\s*index.html\s*/
  puts "Output moved to #{deploy_folder}"
else
  raise "Couldn't copy output to #{deploy_folder}"
end

puts `cd #{deploy_folder} && cd .. && scp -r kitabuntersandkasten root@chocolateco.de:/var/www/`

puts "Finished"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
features-0.2.0 website/src/images/deploy.rb