New Site rake task path
This commit is contained in:
parent
6bc00ce3a3
commit
976c047a7f
|
@ -26,7 +26,7 @@ namespace :new_site do
|
||||||
def upload_package
|
def upload_package
|
||||||
temp_file = Tempfile.new("temp_file")
|
temp_file = Tempfile.new("temp_file")
|
||||||
path = File.expand_path('~')
|
path = File.expand_path('~')
|
||||||
puts original_file = File.open("#{path}/orbit_download/Orbit-Default.zip")
|
puts original_file = File.open("#{path}/orbit_theme/Orbit-Default.zip")
|
||||||
#if original_file.content_type == 'application/zip'
|
#if original_file.content_type == 'application/zip'
|
||||||
temp_file.write(original_file.read.force_encoding('UTF-8'))
|
temp_file.write(original_file.read.force_encoding('UTF-8'))
|
||||||
temp_file.rewind
|
temp_file.rewind
|
||||||
|
|
Reference in New Issue