Settings page UI + npm installation fixes

This commit is contained in:
NGPixel
2017-02-19 16:13:51 -05:00
parent f311d74a08
commit b2e693b1e4
10 changed files with 148 additions and 55 deletions

View File

@@ -1,6 +1,6 @@
'use strict'
const ora = require('ora')('Initializing...').start()
const ora = require('ora')({ text: 'Initializing...', spinner: 'dots12' }).start()
const Promise = require('bluebird')
const exec = require('child_process').exec
const fs = Promise.promisifyAll(require('fs-extra'))
@@ -16,7 +16,7 @@ let installDir = path.resolve(__dirname, '../..')
ora.text = 'Looking for running instances...'
pm2.connectAsync().then(() => {
return pm2.describeAsync('wiki').then(() => {
ora.text = 'Stopping and deleting from pm2...'
ora.text = 'Stopping and deleting process from pm2...'
return pm2.deleteAsync('wiki')
}).catch(err => { // eslint-disable-line handle-callback-err
return true