Giter Site home page Giter Site logo

powershell-profile's Introduction

A PowerShell Profile for Developing and Managing Web Sites on the DNN Platform

This profile includes a number of modules, primarily supporting the "DNNing" module, which is used to create and restore DNN sites, as well as other maintenance tasks, like removing and upgrading the sites.

Getting Started

The following prerequisites are required in order to use this profile:

  • You must have relaxed the PowerShell execution policy
    • In an administrative powershell session, run Set-ExecutionPolicy RemoteSigned
  • Install the PowerShell Community Extensions
  • Install the 7-Zip command-line tool
  • SQL Server PowerShell Snap-in
    • Install SQL Server Management Server 2012 or later
  • (Optional) Install ImageMagick
  • Setup a repository of DNN packages
    • Create an environment variable called soft pointing to the root of this "software repository"
    • Inside this folder, create a folder structure like this, DNN\Versions\DotNetNuke 7, which contains the DNN 7 community platform packages (install, source, upgrade, and symbols)
    • In addition, if you have Evoq packages, add them to DNN\Versions\DotNetNuke PE or DNN\Versions\DotNetNuke EE for Evoq Content or Evoq Content Enterprise, respectively.
    • (I realize that this structure doesn't work for everyone, and I'm open to pull request and suggestions to make it easier)

Once all of that is in place, you can clone this repository into the default PowerShell profile location (so you'll also need git installed). From a PowerShell session:

git clone https://github.com/bdukes/PowerShell-Profile.git $profile\.. --recursive

If you already have a PowerShell profile, you can clone this elsewhere and manually merge it into your existing profile.

powershell-profile's People

Contributors

bdukes avatar engagemoore avatar alexgarcini avatar

Stargazers

 avatar Justin Hachemeister avatar Julien Mazoyer avatar Jahaziel Gonzalez avatar Aliaksandr avatar Typical Engineer avatar Jesse Russell avatar Damir Cuturic avatar c0ns0le avatar

Watchers

 avatar James Cloos avatar Justin Hachemeister avatar  avatar

powershell-profile's Issues

Progress

Use powershell-style progress to indicate how many steps are in the process

Change includeSource switch

Having a switch parameter that defaults to $true is weird (to not include source, you need to pass -includeSource:$false). This parameter should be switched to be the negative, so it can default to $false, and be turned on just by the presence of the switch (e.g. New-DNNSite siteName -withoutSource)

Setup SSL certificate & binding

If a site being restored has SSL setup, create a local, self-signed SSL cert and assign it to the site in IIS (currently all SSL is disabled, instead)

Provide a way to install Evoq

Right now, the New-DNNSite command always grabs the community package. You should be able to point it to another type of package, but if there was a simpler mechanism for specifying which sort of package to install, that'd be good.

Setup all portal aliases

If restoring a site, update the portal aliases to something local (e.g. dnnsoftware.com becomes dnnsoftware.com.dev), and setup host file entries for them, as well as IIS bindings.

Support <location>

When something in the web.config that the script updates is in a <location> element, the script fails to update it.

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.