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
Site.js
app
Commits
488ff8ec
Verified
Commit
488ff8ec
authored
Mar 31, 2019
by
Aral Balkan
Browse files
Remove the pm2 permission command (as it resets on restart anyway)
parent
6c6b04cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/web-server.js
View file @
488ff8ec
...
...
@@ -94,9 +94,8 @@ if (arguments.live !== undefined) {
stdio
:
'
pipe
'
}
// TODO: Check these results for failure.
const
startupResult
=
childProcess
.
execSync
(
`sudo
${
path
.
join
(
__dirname
,
'
../node_modules/pm2/bin/pm2
'
)}
startup`
,
options
)
const
permissionsResult
=
childProcess
.
execSync
(
'
sudo chown $(whoami):$(whoami) /home/$(whoami)/.pm2/rpc.sock /home/$(whoami)/.pm2/pub.sock
'
,
options
)
// TODO: Check this for failure.
const
output
=
childProcess
.
execSync
(
`sudo
${
path
.
join
(
__dirname
,
'
../node_modules/pm2/bin/pm2
'
)}
startup`
,
options
)
console
.
log
(
` 😈 Installed for auto-launch at startup.\n`
)
...
...
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