Commit c463aee9 authored by NGPixel's avatar NGPixel

install fixes

[ci skip]
parent d3297d2d
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -297,7 +297,7 @@ jQuery(document).ready(function ($) { ...@@ -297,7 +297,7 @@ jQuery(document).ready(function ($) {
axios.post('/restart', {}).then(resp => { axios.post('/restart', {}).then(resp => {
_.delay(() => { _.delay(() => {
window.location.assign(self.conf.host) window.location.assign(self.conf.host)
}, 10000) }, 30000)
}).catch(err => { }).catch(err => {
window.alert(err.message) window.alert(err.message)
}) })
......
...@@ -240,8 +240,6 @@ ...@@ -240,8 +240,6 @@
pre { pre {
background-color: mc('blue-grey', '900'); background-color: mc('blue-grey', '900');
border-left: 7px solid mc('indigo', '500'); border-left: 7px solid mc('indigo', '500');
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
padding: 20px 20px 20px 13px; padding: 20px 20px 20px 13px;
font-family: $core-font-monospace; font-family: $core-font-monospace;
white-space: pre; white-space: pre;
......
...@@ -92,9 +92,9 @@ module.exports = (port, spinner) => { ...@@ -92,9 +92,9 @@ module.exports = (port, spinner) => {
} }
let gitver = _.chain(stdout.replace(/[^\d.]/g, '')).split('.').take(3).join('.').value() let gitver = _.chain(stdout.replace(/[^\d.]/g, '')).split('.').take(3).join('.').value()
if (!semver.satisfies(semver.clean(gitver), '>=2.11.0')) { if (!semver.satisfies(semver.clean(gitver), '>=2.11.0')) {
reject(new Error('Git version is too old. Minimum is v2.11.0.')) reject(new Error('Git version is too old. Minimum is v2.7.4.'))
} }
resolve('Git v' + gitver + ' detected. Minimum is v2.11.0.') resolve('Git v' + gitver + ' detected. Minimum is v2.7.4.')
}) })
}) })
}, },
......
...@@ -53,7 +53,7 @@ const ALIASES = { ...@@ -53,7 +53,7 @@ const ALIASES = {
'brace-ext-modelist': 'brace/ext/modelist.js', 'brace-ext-modelist': 'brace/ext/modelist.js',
'simplemde': 'simplemde/dist/simplemde.min.js', 'simplemde': 'simplemde/dist/simplemde.min.js',
'socket.io-client': 'socket.io-client/dist/socket.io.min.js', 'socket.io-client': 'socket.io-client/dist/socket.io.min.js',
'vue': 'vue/dist/vue.js' 'vue': 'vue/dist/vue.min.js'
} }
const SHIMS = { const SHIMS = {
jquery: { jquery: {
...@@ -184,6 +184,7 @@ globalTasks.then(() => { ...@@ -184,6 +184,7 @@ globalTasks.then(() => {
alias: ALIASES, alias: ALIASES,
shim: SHIMS, shim: SHIMS,
plugins: [ plugins: [
fsbx.EnvPlugin({ NODE_ENV: 'production' }),
[ fsbx.SassPlugin({ outputStyle: 'compressed', includePaths: ['./node_modules/requarks-core'] }), fsbx.CSSPlugin() ], [ fsbx.SassPlugin({ outputStyle: 'compressed', includePaths: ['./node_modules/requarks-core'] }), fsbx.CSSPlugin() ],
fsbx.BabelPlugin({ fsbx.BabelPlugin({
config: { config: {
......
...@@ -78,6 +78,9 @@ pm2.connectAsync().then(() => { ...@@ -78,6 +78,9 @@ pm2.connectAsync().then(() => {
* Upgrade mode * Upgrade mode
*/ */
ora.succeed('Upgrade completed.') ora.succeed('Upgrade completed.')
console.info(colors.yellow('\n!!! IMPORTANT !!!'))
console.info(colors.yellow('Running the configuration wizard is optional but recommended after an upgrade to ensure your config file is using the latest available settings.'))
console.info(colors.yellow('Note that the contents of your config file will be displayed during the configuration wizard. It is therefor highly recommended to run the wizard on a non-publicly accessible port or skip this step completely.\n'))
return false return false
}).catch(err => { }).catch(err => {
/** /**
...@@ -135,10 +138,10 @@ pm2.connectAsync().then(() => { ...@@ -135,10 +138,10 @@ pm2.connectAsync().then(() => {
return process.exit(0) return process.exit(0)
} }
}).then(() => { }).then(() => {
ora.succeed(colors.bold.green('Wiki.js has been configured and is now running!')) ora.succeed(colors.bold.green('Wiki.js has been configured successfully. It is now starting up and should be accessible very soon!'))
}) })
} else { } else {
console.info('[!] Non-interactive terminal detected. You may now manually edit config.yml and start Wiki.js by running: node wiki start') console.info(colors.cyan('[!] Non-interactive terminal detected. You may now manually edit config.yml and start Wiki.js by running: node wiki start'))
} }
}) })
}).catch(err => { }).catch(err => {
......
...@@ -367,7 +367,7 @@ html(data-logic='configure') ...@@ -367,7 +367,7 @@ html(data-logic='configure')
i i
.panel-content.is-text .panel-content.is-text
p #[i.icon-loader.animated.rotateIn.infinite] Restarting Wiki.js in normal mode... p #[i.icon-loader.animated.rotateIn.infinite] Restarting Wiki.js in normal mode...
p You'll automatically be redirected to the homepage when ready. Please be patient... p You'll automatically be redirected to the homepage when ready. This usually takes about 30 seconds.
.panel-footer .panel-footer
button.button.is-green(disabled='disabled') Start button.button.is-green(disabled='disabled') Start
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment