Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Are there recommendations for multiple environments? #865


User avatar
0
drenton created

This page, <a class="postlink" href="http://aspnetzero.com/Documents/Development-Guide#introduction">http://aspnetzero.com/Documents/Develop ... troduction</a> under the header SENDING EMAILS makes reference to two modes: DEBUG and RELEASE. Where is the mode set?

In addition, this page <a class="postlink" href="http://docs.asp.net/en/latest/fundamentals/environments.html">http://docs.asp.net/en/latest/fundament ... ments.html</a> makes reference to the use of more than two environments; DEVELOPMENT, STAGING, and PRODUCTION. What would you suggest to implement multiple environments with Zero?


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Mentioned modes DEBUG and RELEASE are Visual Studio's modes, the way you run your project on Visual Studio.

    For the enviroments, there is nothing special for ASP.NET Zero. You can select environments for your project in your own way.

    It has many criterias like the size of project, fault tolerance, customer needs etc :).

  • User Avatar
    0
    drenton created

    So we plan to have three environments: Development, Staging, and Production.

    What I meant by recommendation was not how many environments, but rather is there a recommended way to setup a three environment configuration with Zero.

  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    Debug/Release mode control is simple for ASP.NET Zero.

    See <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/blob/master/src/MyCompanyName.AbpZeroTemplate.Core/AbpZeroTemplateCoreModule.cs#L57">https://github.com/aspnetzero/aspnet-ze ... ule.cs#L57</a> to know where this is controlled.

    DebugHelper is also very simple: <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/blob/master/src/MyCompanyName.AbpZeroTemplate.Core/Debugging/DebugHelper.cs#L5">https://github.com/aspnetzero/aspnet-ze ... lper.cs#L5</a>

    We currently don't support ASP.NET Core and it's not released yet. But ASP.NET Core has some built-in environment support. For your current application, you can create a setting (say, in web.config) and check it to decide which environment you are in. But it can change upon your architecture, we don't provide a solution for it. Any solution can be used in ASP.NET Zero.