mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
enable overriding @fields[‘env’] on the server
This commit is contained in:
parent
7572b2917f
commit
7a2338de6b
1 changed files with 1 additions and 1 deletions
|
|
@ -73,6 +73,7 @@ set :port, $config[:port]
|
|||
blog = HarpBlog.new($config[:path], $config[:dry_run])
|
||||
|
||||
before do
|
||||
@wait_for_compilation = @fields['wait']
|
||||
if request.body.size > 0
|
||||
@fields =
|
||||
case
|
||||
|
|
@ -89,7 +90,6 @@ before do
|
|||
end
|
||||
|
||||
after do
|
||||
@wait_for_compilation ||= @fields['wait']
|
||||
compile = -> {
|
||||
start = Time.now
|
||||
if blog.compile_if_mutated
|
||||
|
|
|
|||
Loading…
Reference in a new issue