Commit e2feb08a authored by Jonne Haß's avatar Jonne Haß

site: add helper task to serve the site

parent 977818dc
......@@ -22,10 +22,20 @@ file "source/" => "../" do |t|
File.write, source
task :build => %w(source/ source/ install_schemas source/docson) do
task :prepare => %w(source/ source/ install_schemas source/docson)
desc "Build site locally"
task :build => :prepare do
sh "bundle exec middleman build"
desc "Start development server"
task :serve => :prepare do
sh "bundle exec middleman"
desc "Build and deploy site"
task :deploy => :build do
sh "bundle exec middleman deploy"
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