Skip to content

Commit e924e13

Browse files
committed
Updated heroku deployment instructions
1 parent df5b885 commit e924e13

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Diff for: heroku/index.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Generator.prototype.gitInit = function gitInit() {
5151
if(this.abort) return;
5252
var done = this.async();
5353

54-
this.log(chalk.bold('Initializing deployment repo'));
54+
this.log(chalk.bold('\nInitializing deployment repo'));
5555
this.mkdir('dist');
5656
exec('git init"', { cwd: 'dist' }, function (err, stdout, stderr) {
5757
this.log(stdout);
@@ -85,7 +85,7 @@ Generator.prototype.gruntBuild = function gruntBuild() {
8585
if(this.abort) return;
8686
var done = this.async();
8787

88-
this.log(chalk.bold('Building dist folder, please wait...'));
88+
this.log(chalk.bold('\nBuilding dist folder, please wait...'));
8989
exec('grunt build', function (err, stdout) {
9090
this.log('stdout: ' + stdout);
9191
if (err) {
@@ -116,14 +116,15 @@ Generator.prototype.gitForcePush = function gitForcePush() {
116116
if(this.abort) return;
117117
var done = this.async();
118118

119-
this.log(chalk.bold("Uploading your initial application code.\n This may take "+chalk.cyan('several minutes')+" depending on your connection speed..."));
119+
this.log(chalk.bold("\nUploading your initial application code.\n This may take "+chalk.cyan('several minutes')+" depending on your connection speed..."));
120120

121121
exec('git push -f heroku master', { cwd: 'dist' }, function (err, stdout, stderr) {
122122
if (err) {
123123
this.log.error(err);
124124
} else {
125-
this.log(chalk.green('You\'re all set! Your app should now be live, run ' + chalk.bold('cd dist && heroku open') + ' to view it.'));
126-
this.log(chalk.yellow('After app modification run\n\t' + chalk.bold('grunt build') +
125+
this.log(chalk.green('\nYou\'re all set! Your app should now be live. To view it run\n\t' + chalk.bold('cd dist && heroku open')));
126+
this.log(chalk.cyan('If you\'re using mongoDB, be sure to add a database to your heroku app.\n\t' + chalk.bold('heroku addons:add mongohq') + '\n\n'));
127+
this.log(chalk.yellow('To deploy a new build\n\t' + chalk.bold('grunt build') +
127128
'\nThen enter the dist folder to commit these updates:\n\t' + chalk.bold('cd dist && git commit -am "describe your changes here"')));
128129
this.log(chalk.green('Finally, deploy your updated build to Heroku with\n\t' + chalk.bold('git push heroku master')));
129130
}

0 commit comments

Comments
 (0)