Skip to content

Commit

Permalink
Second part of the fix - calling done() after file copying is completed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Jausovec committed Nov 4, 2015
1 parent e625025 commit a7563d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ function handleGolang(yo) {
function handleAspNet(yo) {
var aspNet = new AspNetHelper(aspNetVersion, portNumber, imageName);

var done= yo.async();
aspNet.addKestrelCommand(function(err, commandAdded) {
if (err) {
error = true;
Expand All @@ -185,6 +186,7 @@ function handleAspNet(yo) {
}

kestrelCommandAdded = commandAdded;

yo.fs.copyTpl(
yo.templatePath(aspNet.getTemplateDockerfileName()),
yo.destinationPath(DOCKERFILE_NAME), {
Expand All @@ -201,6 +203,8 @@ function handleAspNet(yo) {
dockerHostName: dockerHostName,
containerRunCommand: aspNet.getContainerRunCommand()
});

done();
});
}

Expand Down

0 comments on commit a7563d7

Please sign in to comment.