Skip to content

Commit 37b4177

Browse files
committed
fixed heroku copy task to copy from public folder
1 parent 42be824 commit 37b4177

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Diff for: deploy/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ Generator.prototype.herokuCreate = function herokuCreate() {
6262
if(this.name.toLowerCase() != "heroku") return;
6363
var done = this.async();
6464

65-
exec('heroku apps:create && heroku config:set NODE_ENV=production"', { cwd: 'heroku' }, function (err, stdout, stderr) {
65+
exec('heroku apps:create && heroku config:set NODE_ENV=production', { cwd: 'heroku' }, function (err, stdout, stderr) {
6666
if (err) {
6767
this.log.error(err);
6868
} else {
6969
console.log('stdout: ' + stdout);
7070
console.log(chalk.green('You\'re all set! Now push to heroku with\n\t' + chalk.bold('git push heroku master') +
7171
'\nfrom your new heroku folder'));
72-
console.log(chalk.yellow('After app modification\n\t' + chalk.bold('grunt heroku') +
72+
console.log(chalk.yellow('After app modification run\n\t' + chalk.bold('grunt heroku') +
7373
'\nthen commit and push the heroku folder'));
7474
}
7575
done();

Diff for: templates/common/Gruntfile.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,9 @@ module.exports = function (grunt) {
272272
files: [{
273273
expand: true,
274274
dot: true,
275-
cwd: '<%= yeoman.dist %>',
276-
dest: 'heroku/public',
275+
dest: 'heroku',
277276
src: [
278-
'**/**'
277+
'<%%= yeoman.dist %>/**'
279278
]
280279
}, {
281280
expand: true,

0 commit comments

Comments
 (0)