From c266f8a067f98c2183f4d0276930cec77d024300 Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Tue, 2 Jul 2013 10:47:44 -0700 Subject: [PATCH] Update command to run locally in website README. --- website/README.md | 2 +- website/config.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/README.md b/website/README.md index fc16f96fc..d661265d9 100644 --- a/website/README.md +++ b/website/README.md @@ -17,7 +17,7 @@ commands: ``` $ bundle -$ bundle exec middleman server +$ PACKER_DISABLE_DOWNLOAD_FETCH=true PACKER_VERSION=1.0 bundle exec middleman server ``` Then open up `localhost:4567`. Note that some URLs you may need to append diff --git a/website/config.rb b/website/config.rb index 757c3aadc..3b3416462 100644 --- a/website/config.rb +++ b/website/config.rb @@ -1,6 +1,5 @@ require "net/http" -raise "BINTRAY_API_KEY must be set." if !ENV["BINTRAY_API_KEY"] raise "PACKER_VERSION must be set." if !ENV["PACKER_VERSION"] #------------------------------------------------------------------------- @@ -11,6 +10,7 @@ $packer_files = {} $packer_os = [] if !ENV["PACKER_DISABLE_DOWNLOAD_FETCH"] + raise "BINTRAY_API_KEY must be set." if !ENV["BINTRAY_API_KEY"] http = Net::HTTP.new("dl.bintray.com", 80) req = Net::HTTP::Get.new("/mitchellh/packer") req.basic_auth "mitchellh", ENV["BINTRAY_API_KEY"]