ghost-cli
Advanced tools
Comparing version 1.7.2 to 1.7.3
@@ -5,2 +5,13 @@ # Ghost-CLI Changelog | ||
<a name="1.7.3"></a> | ||
## [1.7.3](https://github.com/TryGhost/Ghost-CLI/compare/1.7.2...1.7.3) (2018-05-10) | ||
### Bug Fixes | ||
* **doctor:** skip install dir checks for local installs ([#712](https://github.com/TryGhost/Ghost-CLI/issues/712)) ([4715aae](https://github.com/TryGhost/Ghost-CLI/commit/4715aae)), closes [#711](https://github.com/TryGhost/Ghost-CLI/issues/711) | ||
### Features | ||
* **start:** direct user to admin interface ([2850af3](https://github.com/TryGhost/Ghost-CLI/commit/2850af3)), closes [#665](https://github.com/TryGhost/Ghost-CLI/issues/665) | ||
<a name="1.7.2"></a> | ||
@@ -7,0 +18,0 @@ ## [1.7.2](https://github.com/TryGhost/Ghost-CLI/compare/1.7.1...1.7.2) (2018-05-01) |
@@ -19,3 +19,5 @@ 'use strict'; | ||
}).then(() => { | ||
if (ctx.local || !ctx.system.platform.linux || (ctx.argv && ctx.argv['setup-linux-user'] === false)) { | ||
const isLocal = ctx.local || (ctx.instance && ctx.instance.process.name === 'local'); | ||
if (isLocal || !ctx.system.platform.linux || (ctx.argv && ctx.argv['setup-linux-user'] === false)) { | ||
return Promise.resolve(); | ||
@@ -22,0 +24,0 @@ } |
@@ -25,2 +25,4 @@ 'use strict'; | ||
const ProcessManager = require('../process-manager'); | ||
const url = require('url'); | ||
const chalk = require('chalk'); | ||
@@ -63,4 +65,16 @@ const instance = this.system.getInstance(); | ||
if (!argv.quiet) { | ||
this.ui.log(`You can access your blog at ${instance.config.get('url')}`, 'cyan'); | ||
const isInstall = process.argv[2] === 'install'; | ||
let adminUrl = instance.config.get('admin.url') || instance.config.get('url'); | ||
adminUrl = url.resolve(adminUrl, '/ghost/'); | ||
this.ui.log(`You can access your publication at ${chalk.cyan(instance.config.get('url'))}`, 'white'); | ||
if (isInstall) { | ||
// Show a different message after a fresh install | ||
this.ui.log(`Next, go to to your admin interface at ${chalk.cyan(adminUrl)} to complete the setup of your publication`, 'white'); | ||
} else { | ||
this.ui.log(`Your admin interface is located at ${chalk.cyan(adminUrl)}`, 'white'); | ||
} | ||
if (instance.config.get('mail.transport') === 'Direct') { | ||
@@ -67,0 +81,0 @@ this.ui.log('\nGhost uses direct mail by default', 'green'); |
{ | ||
"name": "ghost-cli", | ||
"version": "1.7.2", | ||
"version": "1.7.3", | ||
"description": "Just a CLI manager (for a blogging platform)", | ||
@@ -5,0 +5,0 @@ "author": "Ghost Foundation", |
552746
7517