Adding text for first-site-creation confirmation
This commit is contained in:
Родитель
8b0cb28f07
Коммит
ad9579fd1b
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -90,6 +90,9 @@ exports.init = function (cli) {
|
|||
function prompt(label, callback) {
|
||||
cli.prompt(label, function (x) { callback(undefined, x); });
|
||||
}
|
||||
function confirm(label, callback) {
|
||||
cli.confirm(label, function (x) { callback(undefined, x); });
|
||||
}
|
||||
|
||||
|
||||
site.command('create [name]')
|
||||
|
@ -151,10 +154,18 @@ exports.init = function (cli) {
|
|||
var spaces = site.doSpacesGet(context, _);
|
||||
|
||||
if (spaces.length === 0) {
|
||||
log.help('You must create your first web site online.');
|
||||
log.help('Launching portal.');
|
||||
var href = 'https://windows.azure-test.net/';
|
||||
common.launchBrowser(href);
|
||||
log.help('You must create your first web site using the Windows Azure portal.');
|
||||
log.help('Please follow these steps in the portal:');
|
||||
log.help('1. At the bottom of the page, click on New > Web Site > Quick Create');
|
||||
log.help('2. Type "{whatever they supplied as the name}" in the URL field');
|
||||
log.help('3. Click on "Create Web Site"');
|
||||
log.help('4. Once the site has been created, click on the site name');
|
||||
log.help('5. Click on "Set up Git publishing" and create a publishing username and password. Use those credentials for all new websites you create.');
|
||||
if (confirm('Launch browser to portal now? (y/n) ', _)) {
|
||||
log.help('Launching portal.');
|
||||
var href = 'https://windows.azure-test.net/';
|
||||
common.launchBrowser(href);
|
||||
}
|
||||
throw new Error('First site must be created on portal');
|
||||
} else if (spaces.length == 1) {
|
||||
context.site.webspace = spaces[0].Name;
|
||||
|
|
Загрузка…
Ссылка в новой задаче