Skip to content

Instantly share code, notes, and snippets.

@ollyjshaw
Created Nov 10, 2015
Embed
What would you like to do?
Localhost in Rakefile
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