Skip to content

Commit

Permalink
Added MAWB_OUTPUT as an option
Browse files Browse the repository at this point in the history
  • Loading branch information
phillmv committed Mar 27, 2022
1 parent 02a37a4 commit b90081e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/tasks/static.rake
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@ namespace :static do
end

task :generate do
Dir.mkdir 'out' unless File.exist? 'out'
Dir.chdir 'out' do
if ENV["MAWB_OUTPUT"]
folder = ENV["MAWB_OUTPUT"]
else
folder = "out"
end

Dir.mkdir folder unless File.exist? folder
Dir.chdir folder do
puts `wget --version`
puts "######\nwget --domains localhost --recursive --page-requisites --html-extension --convert-links -nH localhost:3000 localhost:3000/hidden_entries"
`wget --domains localhost --recursive --page-requisites --html-extension --convert-links -nH localhost:3000 localhost:3000/hidden_entries`
Expand Down

0 comments on commit b90081e

Please sign in to comment.