Deploy angular application from angular workspace
RaeWinTan opened this issue · 1 comments
my workspace (called my-workspace) has two projects one is a package( project/my-package) another is an application (project/my-application) . I am trying to deploy to gh pages my-application. But when I typed ng add angular-cli-ghpages
in the root of the my-workspace. errorr message Deploy requires an Angular project type of "application" in angular.json
. How to specify i want to deploy for my-application
which is a project type of "application". I tired ng add angular-cli-ghpages --project=my-application
and got unknow option : '--project'. I also tried ng add --project=my-application angular-cli-ghpages
, error message: The "ng add" command requires a name argument to be specified eg. ng add [name] . For more details, use "ng help". I also cd in to project/my-application and tried ng add angular-cli-ghpages
but error message popped up: Deploy requires an Angular project type of "application" in angular.json
So how to specify the workspace i want to deploy or something like that. Thanks
Solved. In the angular.json file of the workspace, I just had to change defaultProject value to "my-application"