Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "kill_kinglion"

Question 1: I follow this documentation (Publishing to Docker Containers) but when I run the build-with-ng.ps1 it emits the following error logs. A newbie friendly explanation would be appreciated.

ng : The term 'ng' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At D:\Ferrari\develop\core\iChangeCore\Core\core-erp-system\aspnet-core\build\build-with-ng.ps1:46 char:1
+ ng build --prod
+ ~~
    + CategoryInfo          : ObjectNotFound: (ng:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Join-Path : A positional parameter cannot be found that accepts argument 'nginx.conf'.
At D:\Ferrari\develop\core\iChangeCore\Core\core-erp-system\aspnet-core\build\build-with-ng.ps1:48 char:37
+ ... -ItemType directory -Path (Join-Path $outputFolder "ng" "nginx.conf")
+                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Join-Path], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.JoinPathCommand

And this at the end of logs:

=> ERROR [2/2] COPY ./dist /usr/share/nginx/html                                                                                                                                                                                       0.0s
------
 > [2/2] COPY ./dist /usr/share/nginx/html:
------
failed to solve: failed to compute cache key: "/dist" not found: not found

FYI: I installed angular/cli global so the missing 'ng' command seems to be fixed but was it the right way ?

Question 2: What are all the docker-compose file I found in the project directory? Any explanation on what's inside /aspnet-core/docker folders ? Since I couldn't find any documentation explaining about this folders, I'm not sure if I missed something important to deploying with docker.

Showing 1 to 1 of 1 entries