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

Host Angular JS + Asp.net core app on AWS EC2 Linux Instance #3619


User avatar
0
ideazco created

Hi Ismail, we are using Angular JS + Asp.net core for our project. We use two solutions.

We were able to host asp.net core host app to the AWS EC2 Linux instance. It runs well. When we try to host Angular UI app to s3 bucket we gettting "Error details not sent by server" error. We simply uploaded ng cli build package as it is to s3 bucket. (Folder structure remain as it is in s3 bucket) Also we changed appsetting.json to correct hosted core app. Database also correctly configured and tested.

Is it possible to deploy Angular UI directly on s3 bucket? If not can we deploy Angular UI on another EC2 linux instance? What are the steps?

Thanks Mangala


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ideazco,

    Actually, Angular UI is pure html & javascript when you deploy it. Your problem might be related to CORS.

    Can you see swagger-ui on host app ? If so, you can check Logs.txt file under it to see if there is an exception message.

    Otherwise please share your host and client (angular UI) setting files with <a href="mailto:[email protected]">[email protected]</a> and we will take a look at it.

    Thanks.

  • User Avatar
    0
    ideazco created

    Hi,

    Yes, we can see swagger-ui on host app. There are no exception messages on Logs.txt file.

    We'll send you the host and client published files

    Thanks.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks @ideazco,

    Just for anyone else having same problem, it was a small misconfiguration problem.