lib/harbr/next/job.rb in harbr-0.1.8 vs lib/harbr/next/job.rb in harbr-0.1.9
- old
+ new
@@ -81,11 +81,11 @@
def to_s
script_template = <<~SCRIPT
#!/bin/sh
exec 2>&1
cd /var/harbr/#{@container_name}/current
- exec HARBR_ENV=next ./exe/run #{@port}
+ exec ./exe/run #{@port} live
SCRIPT
end
def link
"ln -s /etc/sv/harbr/#{@container_name} /etc/service/#{@container_name}"
@@ -132,10 +132,10 @@
def to_s
script_template = <<~SCRIPT
#!/bin/sh
exec 2>&1
cd /var/harbr/containers/#{@container_name}/next
- exec ./exe/run #{@port}
+ exec ./exe/run #{@port} next
SCRIPT
end
end
class Log