Giter Site home page Giter Site logo

easyiis's Introduction

EasyIIS

Simple windows command line tool to automate turning on IIS appPools and websites, and any related windows services.

Useful if you have a large number of sites on your local development machine and you want a quick way to turn on/off quickly without having to click around in the IIS and services UI.

Particularly useful for Sitecore 9 sites where you have multiple IIS AppPools (website, identityserver, xconnect), and services (solr, SQL, mongoDb) to manage. With this tool, you can easily group these together as a "site" and turn the entire group on/off via the command line/bash. Or you can turn ALL sites on and off. And when you turn on / "up" a site, you can also pre-warm the url to decrease your first load time to get you coding faster.

Configuration

Site list is configured in the config.json file:

{  
  "sites": [
    {
      "name": "mysite1",
      "appPools": [
        "mysite1"
      ],
      "websites": [
        "mysite1"
      ],
      "services": [
        "solr-mysite1"
      ],
      "warm": [
        "http://localhost"
      ]
    },
    {
      "name": "mysite2",
      "appPools": [
        "mysite2.identityserver",
        "mysite2.verndale-local.com",
        "mysite2.xconnect"
      ],
      "websites": [
        "mysite2.identityserver",
        "mysite2.verndale-local.com",
        "mysite2.xconnect"
      ],
      "services": [
        "solr-mysite2-9004"
      ],
      "warm": [
        "http://localhost.mysite2",
        "http://local.solr"
      ]
    }
  ]
}

Path Variable

I recommend you add a local user path variable to the folder you downloaded or cloned this repo to. This will enable you to use EasyIIS.exe in any directory/folder in command line - or better yet, in the git bash console.

Example install location:

C:\Tools\EasyIIS\latest\EasyIIS.exe

So in this example, you would simply add a user path variable to the folder C:\Tools\EasyIIS\latest\ and you should be able to call "EasyIIS" in any folder in command line or git bash.

Usage Examples

Note: Including the .exe is optional, it is present here for demonstration purposes.

EasyIIS.exe
(default / no command line parameters) = shows help / available commands.

EasyIIS.exe status
(shows the status of all configured appPools, websites and services)

EasyIIS.exe allup
(turns all appPool, website and services off)

EasyIIS.exe alldown
(turns all appPool, website and services off)

EasyIIS.exe up --site="mysite"
(turns specific site appPool, website and services on)

EasyIIS.exe down --site="mysite"
(turns specific site appPool, website and services off)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.