-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avniproject/avni-infra#31 | Setup pm2 startup service for avni-media …
…during install
- Loading branch information
Showing
1 changed file
with
1 addition
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,5 +79,6 @@ EOF | |
#Persist apps to ensure they get restarted automatically | ||
sudo su - avni-media-user << EOF | ||
pm2 startup systemd | ||
sudo env PATH=$PATH:/home/avni-media-user/.nvm/versions/node/v19.8.1/bin /home/avni-media-user/.nvm/versions/node/v19.8.1/lib/node_modules/pm2/bin/pm2 startup systemd -u avni-media-user --hp /home/avni-media-user | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
1t5j0y
Author
Contributor
|
||
pm2 save | ||
EOF |
@1t5j0y should we delete line no 81..
And add line break after following
sudo env PATH=$PATH:/home/avni-media-user/.nvm/versions/node/v19.8.1/bin
Final content in lines 81 and 82: