Skip to content

Deploy the website to the azure storage blob

tcoducayen edited this page Mar 25, 2020 · 3 revisions

Create resource and link to www site:

  1. Create a storage resource a. this was already accomplished in task 194
  2. Attach the storage resource to the 1edusite dns server a. create a domain for www b. go to storage resource and connect www
  3. Upload the $web container
  4. Check if it works

Launch the site manually:

  1. launch the app locally a. run npm install b. run npm start c. run npm run build
  2. Use Visual Studio code to launch the site a. Select the build file b. deploy to static site

Launch the site automatically

  1. Add travis.yml file
  2. link account to github

Create a service app to automate deployments

  1. Add service app
  2. Update authorization for service app for "github"
  3. Add permission on GitHub site
  4. Create a push with travis.ci
  5. Navigate to website

Instructions on how to deploy static site

Open the containing folder for the UI teams project: - ad440-winter2020-tuesday-repo\ui

install and start node to check if the website works: - npm install - npm start

create an updated build for the project: - npm run build

open visual studio code: (install storage app for vsc) - right click: ui/build folder - left click: deploy static website - wait until deployed

navigate to: - https://www.1edusite.com

08c1c649-bfdd-439e-8e5b-5ff31c72ce4e

Clone this wiki locally