Permalink
Browse files

[ux] Updated deploy usage

[misc] Added npm to Readme
  • Loading branch information...
1 parent 780a590 commit d4d8eae8b6239e5a67cbf00cb144b6189cd261a8 @Marak Marak committed Apr 13, 2011
Showing with 13 additions and 8 deletions.
  1. +1 −0 README.md
  2. +1 −1 lib/jitsu/commands.js
  3. +11 −7 lib/jitsu/commands/apps.js
View
@@ -97,6 +97,7 @@ All configuration data for your local `jitsu` install is located in the *.jitsuc
<a name="Libraries"></a>
The [Nodejitsu](http://nodejitsu.com) team and friends have been building and using these tools actively for the past two years. They are the most used Node libraries (see: [http://search.npmjs.org/](http://search.npmjs.org/)) and are actively maintained. Each tool serves a specific function and we highly suggest you check each one out individually if you wish to increase your knowledge of Node.js
+- [npm](http://npmjs.org) - Node Package Manager
- [colors](http://github.com/marak/colors) - Terminal Colors module
- [optimist](http://github.com/substack/optimist) - CLI Options Parsing
- [request](http://github.com/mikeal/request) - http request module
View
@@ -82,7 +82,7 @@ commands.run = function (command, callback) {
parts.push(function (err, shallow) {
if (err && shallow) {
winston.help('');
- winston.help('Usage:'.bold);
+ winston.help('Usage:'.cyan.bold.underline);
command.usage.forEach(function (line) {
winston.help(line);
});
View
@@ -94,14 +94,15 @@ apps.deploy = function (callback) {
};
apps.deploy.usage = [
- 'Deploys an application using the following steps:',
+ '',
+ 'Deploys an application using the following steps:'.cyan.underline,
+ '',
' 1. Creates the application (if necessary)',
- ' 2. Packages and creates a new snapshot',
- ' 3. Stops the application (if neccessary)',
- ' 4. Starts the application',
+ ' 2. Creates or validates the package.json',
+ ' 3. Packages and creates a new snapshot',
+ ' 4. Stops the application (if neccessary)',
+ ' 5. Starts the application',
'',
- 'jitsu deploy',
- 'jitsu apps deploy'
];
//
@@ -138,7 +139,10 @@ apps.create = function (name, callback) {
// TODO (indexzero): Configure this default value in nodejitsu APIs
//
pkg.state = 'stopped';
- winston.info('Validating package.json for ' + pkg.name.magenta);
+
+ //winston.info('Validating package.json for ' + pkg.name.magenta);
+ winston.help("In order to create an application we'll need a unique subdomain".cyan);
+ winston.help("You're application will then become accessible at: ".cyan + " http://yourdomain.nodejitsu.com".cyan);
jitsu.prompt.addProperties(pkg, ['subdomain'], function (updated) {
winston.info('Creating app ' + pkg.name.magenta);
jitsu.apps.create(updated, function (err, res, result) {

0 comments on commit d4d8eae

Please sign in to comment.