use supervisor instead of pm2 for stability

This commit is contained in:
Josh Harvey 2017-07-09 00:48:15 +03:00
parent 5ab77c560f
commit 2f94e07788
10 changed files with 46 additions and 35 deletions

View file

@ -59,6 +59,11 @@ function locateVolume () {
}
function prepareVolume () {
if (isMounted()) {
logger.info('Volume is already mounted.')
return true
}
const volumePath = locateVolume()
if (!volumePath) return false