Created
November 10, 2015 13:04
-
-
Save ollyjshaw/4e273e675a4de923fef3 to your computer and use it in GitHub Desktop.
Localhost in Rakefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc 'Build and preview the site locally in development mode' | |
task :preview, [:profile] => :check do |task, args| | |
profile = args[:profile] || 'development' | |
awestruct_running_port = awestruct_port(profile) | |
run_awestruct "-P #{profile} -a -s --force -q --auto --livereload -b 0.0.0.0 -p #{awestruct_running_port}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment