summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2019-08-16 09:49:53 +0000
committergebele <gebele@in-silico.ch>2019-08-16 09:49:53 +0000
commit270bddf5081671cd1905d6cce6eb3659159f573a (patch)
tree86dd2db590b86185cce8f52cefb2b7fba0fb9623 /lib
parent74332693fed1d5ecb695dd6ae0c2fc611d14c4d7 (diff)
change hostname method
Diffstat (limited to 'lib')
-rw-r--r--lib/model.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/model.rb b/lib/model.rb
index 55172b0..dfc779c 100644
--- a/lib/model.rb
+++ b/lib/model.rb
@@ -145,7 +145,7 @@ post "/api/model/:id/?" do
@task.save
end#main task
tid = @task.id.to_s
- return 202, "//#{ENV['VIRTUAL_HOST']}/task/#{tid}".to_json
+ return 202, "//#{$host_with_port}/task/#{tid}".to_json
else
halt 400, "No accepted content type"
end