Comments (14)
I have the same problem, /api/culture/SupportCultures not found, when publishing to production.
At dev all ok.
Thanks!
from toucan.
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.
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.
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.
I am sharing my link
https://drive.google.com/open?id=0B-T1Z26dBcspOHRYWVVuVjhtX0cxRk9salZzby1OUmlIaV9v
from toucan.
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.
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.
This is complete project, please do have a look
https://github.com/hmuhdkamran/Cms
from toucan.
Thanks for that. I will try to reproduce locally this weekend using IIS host, as I develop on windows.
from toucan.
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.
i have faced few issues while deploying on ubuntu,
- it gives UniversalTimeZone error, by replacing
"defaultTimeZone": "Pakistan Standard Time"
with"defaultTimeZone": "Asia/Karachi"
the issue resolved. - folder name Resource in is not recognizable, it should be in lower case.
- the
private const string DefaultEnvironment = "Production";
is having Capital first letter, and the json files are in lower case, they must be same case. string fileName = fileName = $"{webRoot}\\index.html";
should bestring fileName = fileName = $"{webRoot}/index.html";
andfileName = $"{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.
from toucan.
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.
glad to see the site is up and running now. will close this issue down
from toucan.
Related Issues (20)
- Application payload Error. HOT 2
- "vue-i18n/types/index" has no exported member 'LocaleMessageObject' HOT 2
- Please do some updates HOT 4
- Issue on running on Ubuntu HOT 7
- Unit Testing Stubs for Vue Components HOT 2
- Alternate Layout HOT 1
- Triggering of Verification Process HOT 1
- Date Binding for Vue Components HOT 2
- Upgrade from Beta to Release of Bootstrap 4 HOT 11
- Audit Logging Stubs HOT 1
- Expired verifications causes primary key conflict when attempting to verify HOT 3
- External auth fails with "invalid nonce" depending on server timezone HOT 1
- Sliding expiration HOT 6
- Installation failed HOT 2
- Suggestion HOT 1
- Route Guards HOT 1
- TimeZone Serialization Issue HOT 2
- An unhandled exception
- need some updates HOT 2
- CSRF and JWT
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toucan.