mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-04-27 14:57:40 +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])
|
blog = HarpBlog.new($config[:path], $config[:dry_run])
|
||||||
|
|
||||||
before do
|
before do
|
||||||
|
@wait_for_compilation = @fields['wait']
|
||||||
if request.body.size > 0
|
if request.body.size > 0
|
||||||
@fields =
|
@fields =
|
||||||
case
|
case
|
||||||
|
|
@ -89,7 +90,6 @@ before do
|
||||||
end
|
end
|
||||||
|
|
||||||
after do
|
after do
|
||||||
@wait_for_compilation ||= @fields['wait']
|
|
||||||
compile = -> {
|
compile = -> {
|
||||||
start = Time.now
|
start = Time.now
|
||||||
if blog.compile_if_mutated
|
if blog.compile_if_mutated
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue