Skip to content

Instantly share code, notes, and snippets.

Created Nov 10, 2015
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 -p #{awestruct_running_port}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment