Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added middleman detection to Rakefile.
  • Loading branch information
Dan-Q committed Oct 6, 2015
1 parent 159d44a commit fb04954
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Rakefile 100644 → 100755
Expand Up @@ -12,13 +12,15 @@ namespace :web do

desc 'Build the website from source'
task :build do
raise 'Middleman not found. Try "gem install middleman".' if `which middleman` == ''
run_from_directory('web') do
system("middleman build --clean")
end
end

desc "Preview the website at http://0.0.0.0:4567"
task :preview do
raise 'Middleman not found. Try "gem install middleman".' if `which middleman` == ''
run_from_directory('web') do
system("middleman server --bind-address=0.0.0.0")
end
Expand Down

0 comments on commit fb04954

Please sign in to comment.