Base solution for your next web application
Open Closed

Front End Angular Deployment #11357


User avatar
0
mahendra created

Hello Expert,

I deploy the angular application on AWS S3. When I growse the URL am getting the following error...Any idea what may have went wrong...


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

    Hi,

    As I can see, your PROD API doesn't contain necessary endpoints http://healic-prodserver-env.us-east-1.elasticbeanstalk.com/swagger/index.html

  • User Avatar
    0
    mahendra created

    I have following configuration setup at the Backend API file appsettings.Production.json

    "App": { "ServerRootAddress": "http://healic-prodserver-env.us-east-1.elasticbeanstalk.com/", "ClientRootAddress": "http://healic-prodclient-env.s3-website-us-east-1.amazonaws.com/", "CorsOrigins": "http://healic-prodclient-env.s3-website-us-east-1.amazonaws.com/" }

    Please advise....

    Regards, Mahendra

  • User Avatar
    0
    mahendra created

    Here is my both settings (front end and back end)

    Angular Application Settings(appconfig.production.json)


    "remoteServiceBaseUrl": "http://healic-prodserver-env.us-east-1.elasticbeanstalk.com/", "appBaseUrl": "http://healic-prodclient-env.s3-website-us-east-1.amazonaws.com/",

    BackEnd API Application Settings(appsettings.Production.json)


    "App": { "ServerRootAddress": "http://healic-prodserver-env.us-east-1.elasticbeanstalk.com/", "ClientRootAddress": "http://healic-prodclient-env.s3-website-us-east-1.amazonaws.com/", "CorsOrigins": "http://healic-prodclient-env.s3-website-us-east-1.amazonaws.com/" }

    Please advise....

  • User Avatar
    0
    mahendra created

    Never mind...it got resolved....

    We need not to put slash(/) at the end of the remoteServiceBaseUrl and appBaseUrl setting....

    Regards, Mahendra