abp icon indicating copy to clipboard operation
abp copied to clipboard

System.IO.DirectoryNotFoundException : '/MyApp.Domain.Shared/' with Docker

Open aelhadi opened this issue 6 years ago • 1 comments

Hello,

Version 3.3.1 Tierd App Blazor Docker Windows 10

MyApp.IdentityServer exception when using Docker at :

Configure(options => { options.FileSets.ReplaceEmbeddedByPhysical(Path.Combine(hostingEnvironment.ContentRootPath, $"..{Path.DirectorySeparatorChar}MyApp.Domain.Shared")); options.FileSets.ReplaceEmbeddedByPhysical(Path.Combine(hostingEnvironment.ContentRootPath, $"..{Path.DirectorySeparatorChar}MyApp.Domain")); });

Error Message :

System.IO.DirectoryNotFoundException : '/MyApp.Domain.Shared/'

aelhadi avatar Nov 17 '20 17:11 aelhadi

hi

ReplaceEmbeddedByPhysical is useful during development.

If you deploy to docker, you should configure it according to the environment.

https://docs.abp.io/en/abp/latest/Virtual-File-System#dealing-with-embedded-files-during-development

maliming avatar Nov 18 '20 01:11 maliming