Open Closed

docker build angular ui and deploy to docker solution #1572


User avatar
0
tolo created

hi, abp team

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v4.3.3
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

runtime: centos&docker nginx(static html)

I packaged the angluar project on my local Windows system and deployed it as a static file on nginx on my centos server; pack cli : yarn build:prod

There is no exception on the page, but the login button cannot be clicked;

My doubts: 1.Whether the angluar project must be on linux to build? 2.Is there a Dockerfile scheme for reference?


4 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    I guess you are using HTTP.

    Try

    environment.prod.ts

      oAuthConfig: {
        issuer: 'https://localhost:44305',
        redirectUri: baseUrl,
        clientId: 'MyProjectName_App',
        responseType: 'code',
        scope: 'offline_access openid profile role email phone MyProjectName',
        requireHttps: false // this line
      },
    
  • User Avatar
    0
    tolo created

    Results still the same, login button cannot be clicked;

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Is there any error logs?

  • User Avatar
    0
    tolo created

    I misread it. That's it。 thank you liangshiwei laotie!!!

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38