Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Hypha
Tools
Indie Web Server
Commits
103add5f
Verified
Commit
103add5f
authored
Apr 12, 2019
by
Aral Balkan
Browse files
Fix systemd service unit template
parent
5c3893b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/web-server.js
View file @
103add5f
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment