Giter Site home page Giter Site logo

preview3web's Introduction

errors

Prerequisites

  • azure-cli
  • dotnet-cli Preview 3

Install the latest azure-cli using npm

$ npm install azure-cli -g

Configure azure-cli

Login to Azure

$ azure login

The cli prompts you to go to a url and enter a specific code to login to the portal.

Enable Azure CLI Service Management mode commands

$ azure config mode asm

dotnet-cli Preview 3

Create the Web app using the dotnet-cli

# create the destinatation directory
$ mkdir preview3web

# change directory
$ cd preview3web

# create new application with template option of web
$ dotnet new -t web

# restore nuget packages
$ dotnet restore

Console Output

  Restoring packages for .../preview3web/preview3web.csproj...
  Writing lock file to disk. Path: .../preview3web/obj/project.assets.json
  Generating MSBuild file .../preview3web/obj/preview3web.csproj.nuget.g.targets.
  Generating MSBuild file .../preview3web/obj/preview3web.csproj.nuget.g.props.
  Restore completed in 1657.5765ms for .../preview3web/preview3web.csproj.

  NuGet Config files used:
      /Users/shayneboyer/.nuget/NuGet/NuGet.Config

  Feeds used:
      https://api.nuget.org/v3/index.json

Creating the Web site using the azure-cli

--location sets the Azure region for the site to be created, and the --git option set that we will be using git deploy to deploy the application.

$ azure site create 'preview3web' --location 'East US' --git

Console Output

info:    Executing command site create
+ Getting sites
+ Getting locations
info:    Creating a new web site at preview3web.azurewebsites.net
\info:    Created website at preview3web.azurewebsites.net
+
+ Getting locations
info:    Executing `git init`
info:    Initializing remote Azure repository
+ Updating site information
info:    Remote azure repository initialized
+ Getting site information
+ Getting user information
info:    Executing `git remote add azure https://[email protected]/preview3web.git`
info:    A new remote, 'azure', has been added to your local git repository
info:    Use git locally to make changes to your site, commit, and then use 'git push azure master' to deploy to Azure
info:    site create command OK

Add the site contents and push to azure.

$ git add .

$ git commit -m 'init'

Push to Azure

$ git push azure master

preview3web's People

Contributors

spboyer avatar

Watchers

James Cloos avatar  avatar

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.