Giter Club home page Giter Club logo

Comments (14)

raen1978 avatar raen1978 commented on July 20, 2024

I have the same problem, /api/culture/SupportCultures not found, when publishing to production.

At dev all ok.

Thanks!

from toucan.

mrellipse avatar mrellipse commented on July 20, 2024

thanks for reporting that. I will try and reproduce.

i will put in a simple warning for app..json not found - it just means ASPNETCORE_ENVIRONMENT has not been explicitly set.

will try and reproduce the other /api/culture/SupportCultures issue after that

from toucan.

mrellipse avatar mrellipse commented on July 20, 2024

ok, that simple issue with environment variable is fixed up.

i could not repro the other issue though. could you provide a few more clues such as

  • platform
  • build process (did you clone the project directly, or use the yeoman generator)
  • screenshot (or text log) of the network trace in your browser

TIA!

from toucan.

hmuhdkamran avatar hmuhdkamran commented on July 20, 2024

Dear,
The second issue with /api path is on every platform, I have tried IIS and nginx, but the same issue, I have use the clone of the project.

from toucan.

hmuhdkamran avatar hmuhdkamran commented on July 20, 2024

I am sharing my link
https://drive.google.com/open?id=0B-T1Z26dBcspOHRYWVVuVjhtX0cxRk9salZzby1OUmlIaV9v

from toucan.

mrellipse avatar mrellipse commented on July 20, 2024

thanks for that. will see if I can figure it out.

glad to see you are putting it behind a reverse proxy as recommended!

from toucan.

mrellipse avatar mrellipse commented on July 20, 2024

okay, 500 internal error, but the api filter is definitely working.

my first guess would be that it might be having problems enumerating the contents of the ./Resources folder?

if it can't find expected *.json language files, it would probably blow up.

from toucan.

hmuhdkamran avatar hmuhdkamran commented on July 20, 2024

This is complete project, please do have a look

https://github.com/hmuhdkamran/Cms

from toucan.

mrellipse avatar mrellipse commented on July 20, 2024

Thanks for that. I will try to reproduce locally this weekend using IIS host, as I develop on windows.

from toucan.

mrellipse avatar mrellipse commented on July 20, 2024

hi @hmuhdkamran & hi @raen1978

okay, good news. so I was able to get the site running under IIS 10.0 using a build published directly to /dist.

the internal 500 run-time errors are definitely configuration related :)

your feedback did highlight some issues in the production logging output though- so I have done a new push to master branch - see update logging code

if you merge this commit into your project, you can then

  • publish and deploy new production build
  • set logging levels in app.production.json for 'console' to 'Trace'
  • start app from command line 'dotnet xxx.ui.dll'

you will then get a much better insight into the run-time errors being thrown. let me know how it goes

@hmuhdkamran i did manage to get your project running. I didn't get the exact same error on calls to /api, but I did notice an authentication error. as well as above, set the 'token issuer' value in app.production.json and try again 👍 1

from toucan.

hmuhdkamran avatar hmuhdkamran commented on July 20, 2024

i have faced few issues while deploying on ubuntu,

  1. it gives UniversalTimeZone error, by replacing "defaultTimeZone": "Pakistan Standard Time" with "defaultTimeZone": "Asia/Karachi" the issue resolved.
  2. folder name Resource in is not recognizable, it should be in lower case.
  3. the private const string DefaultEnvironment = "Production"; is having Capital first letter, and the json files are in lower case, they must be same case.
  4. string fileName = fileName = $"{webRoot}\\index.html"; should be string fileName = fileName = $"{webRoot}/index.html"; and fileName = $"{webRoot}/{area.ToLower()}.html"; use forward slash.

Suggestions:
to achieve lazy loading in vue.js if we use const GeneralLayout = resolve => (require as any)(['../layout/general/general'], function (module){ resolve(module.GeneralLayout) }); instead of import { GeneralLayout } from '../layout/general/general'; it improves.

if we use layout for separate login/register and for authenticated routs. i.e
component: WindowsLayout, path: '/', meta: { roles: [UserRoles.User] }, children: []

any one who want to see please login
http://sqanetcore.thetowertech.com/

if any one need login please email me. [email protected]
regards

from toucan.

mrellipse avatar mrellipse commented on July 20, 2024

from toucan.

mrellipse avatar mrellipse commented on July 20, 2024

okay, those issues with production builds for linux are patched now. +1 for

'server' "! شاپر سر�ر. I am captain Kirk!"

I couldn't access the squanetcore site though? There is an Content Security Policy issue affecting the bootstrapping process. I used my google fu and reckon you may might need to modify nginx or kestrel to append this header when serving the root files ...

Content-Security-Policy: script-src 'unsafe-inline';

Let me know when I can access the site - curious to have a look!

from toucan.

mrellipse avatar mrellipse commented on July 20, 2024

glad to see the site is up and running now. will close this issue down

from toucan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.