Commit c266f8a0 authored by Brandon Liu's avatar Brandon Liu Committed by Mitchell Hashimoto

Update command to run locally in website README.

parent 39d3ae85
...@@ -17,7 +17,7 @@ commands: ...@@ -17,7 +17,7 @@ commands:
``` ```
$ bundle $ 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 Then open up `localhost:4567`. Note that some URLs you may need to append
......
require "net/http" 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"] raise "PACKER_VERSION must be set." if !ENV["PACKER_VERSION"]
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -11,6 +10,7 @@ $packer_files = {} ...@@ -11,6 +10,7 @@ $packer_files = {}
$packer_os = [] $packer_os = []
if !ENV["PACKER_DISABLE_DOWNLOAD_FETCH"] 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) http = Net::HTTP.new("dl.bintray.com", 80)
req = Net::HTTP::Get.new("/mitchellh/packer") req = Net::HTTP::Get.new("/mitchellh/packer")
req.basic_auth "mitchellh", ENV["BINTRAY_API_KEY"] req.basic_auth "mitchellh", ENV["BINTRAY_API_KEY"]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment