Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Guidance on deployment to virtual directory #961

Closed
MiniverCheevy opened this issue May 20, 2017 · 2 comments
Closed

Guidance on deployment to virtual directory #961

MiniverCheevy opened this issue May 20, 2017 · 2 comments

Comments

@MiniverCheevy
Copy link

It would be nice to have some guidance (or command line options) to bundle the application for deployment to a virtual directory off of the site root. I've had some luck with the HTML webpack plugin, but am still having some issues getting my webpacked MDI icons to resolve properly.

@ADefWebserver
Copy link

I have been able to get my application to work in Dev (off the root) and in production (in a virtual directory off the root) by simply opening the file at Views/Shared/_Layout.cshtml and change the base href to the following:

<base href="~/" />

See: Implementing PrimeNG FileUpload in a .Net Core Application

@SteveSandersonMS
Copy link
Member

SteveSandersonMS commented May 22, 2017

I've now added @ADefWebserver's dynamic <base> element to all the templates in the dev branch, so hopefully this gets people closer.

If there are other specific bugs that anyone's encountering, could you report them with exact details on what you regard to be the bug? Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants