angularjs - Setting domain name in IIS Express in an ASP.NET Core application -


we have asp.net core web application uses angular js (1.5) on client, , controllers used returning data. during development, iis express used on developers' machines, , in other environments, iis used. has implications:

  1. attribute needs different between devs' , other environments: on devs' looks this: <base href="/"> while on others (running iis) looks (it includes domain name): <base href="/digitalrural/">
  2. angular directives need include domain name in templateurl field in iis while not in local iis express machines.

so after deploying app environment, add domain name these locations.

trying solve this, i've tried go route of including domain name during development time, both base href attribute , templateurl filed containing domain name. setting either launch url or app url in iis express url: http://localhost:60209/digitalrural/ doesn't work. browser can't find file , page blank.

how configure iis express find static files? located under wwwroot folder of web app, finds if url http://localhost:60209/, can't find if url http://localhost:60209/digitalrural/

thanks,
ashilon


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -