Verified Commit 103add5f authored by Aral Balkan's avatar Aral Balkan
Browse files

Fix systemd service unit template

parent 5c3893b0
......@@ -187,7 +187,7 @@ switch (true) {
//
const binaryExecutable = '/usr/local/bin/web-server'
const nodeExecutable = `node ${path.join(sourceDirectory, 'bin/web-server.js')}`
const executable = runtime.isBinary ? webserverBinaryPath : daemonScriptPath
const executable = runtime.isBinary ? binaryExecutable : nodeExecutable
const absolutePathToServe = path.resolve(pathToServe)
......@@ -216,7 +216,7 @@ switch (true) {
StartLimitIntervalSec=0
Restart=always
ExecStart=/usr/local/bin/web-server test ${absolutePathToServe}
ExecStart=${executable} test ${absolutePathToServe}
[Install]
WantedBy=multi-user.target
......
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