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

  1. Open the containing folder for the UI teams project:

    1. ad440-winter2020-tuesday-repo\ui
  2. install and start node to check if the website works:

    1. npm install
    2. npm start
  3. create an updated build for the project:

    1. npm run build
  4. open visual studio code: (install storage app for vsc)

    1. right click: ui/build folder
    2. left click: deploy static website
    3. wait until deployed
  5. navigate to:

    1. https://www.1edusite.com
Clone this wiki locally