Glimpse / Glimpse.Prototype

Glimpse v2 prototype
MIT License
184 stars 44 forks source link

Glimpse runs not just on localhost #120

Open mkarlsson opened 8 years ago

mkarlsson commented 8 years ago

I get Glimpse UI bar at the bottom on staging and production as well. How do I control this? I just added the nuget package and app.UseGlimpse(); in Configure method and services.AddGlimpse(); in ConfigureServices.

skorunka commented 8 years ago

Hi, try "if (env.IsDevelopment()) { .... }" in your ConfigureServices((IServiceCollection services, IHostingEnvironment env) and Configure(IApplicationBuilder app, IHostingEnvironment env) methods.

mkarlsson commented 8 years ago

I was under the impression it was supposed to work anyway?

skorunka commented 8 years ago

I don't think so. You have to control if to add Glimpe into app pipeline or not.