Using OCTOPRESS_-prefixed ENV vars. Modification to #780.

This commit is contained in:
Parker Moore 2012-12-17 14:06:45 -05:00
parent 6827f314b1
commit bb8f531d54

View File

@ -28,8 +28,8 @@ posts_dir = "_posts" # directory for blog files
themes_dir = ".themes" # directory for blog files themes_dir = ".themes" # directory for blog files
new_post_ext = "markdown" # default new post file extension when using the new_post task new_post_ext = "markdown" # default new post file extension when using the new_post task
new_page_ext = "markdown" # default new page file extension when using the new_page task new_page_ext = "markdown" # default new page file extension when using the new_page task
server_host = ENV['IP'] ||= '0.0.0.0' # host ip address for preview server server_host = ENV['OCTOPRESS_IP'] ||= '0.0.0.0' # host ip address for preview server
server_port = ENV['PORT'] ||= "4000" # port for preview server eg. localhost:4000 server_port = ENV['OCTOPRESS_PORT'] ||= "4000" # port for preview server eg. localhost:4000
desc "Initial setup for Octopress: copies the default theme into the path of Jekyll's generator. Rake install defaults to rake install[classic] to install a different theme run rake install[some_theme_name]" desc "Initial setup for Octopress: copies the default theme into the path of Jekyll's generator. Rake install defaults to rake install[classic] to install a different theme run rake install[some_theme_name]"
task :install, :theme do |t, args| task :install, :theme do |t, args|