Skip to content

Deployment

Louis Tsai edited this page Oct 27, 2019 · 1 revision

How to deploy DevFest Berlin 2019 website

Basic structure of the website

The website is based on Project Hoverboard from GDG[x], and the TL;DR: of it is that it's made of 2 parts:

  1. static website
    • All HTML/CSS/JS
    • All markdown
    • All images
    • A lot of relatively stable data (e.g. event date, venue, copy, etc.)
  2. data on firebase (i.e. everything in docs/default-firebase-data.json)
    • Speakers
    • Sessions
    • Team
    • Tickets
    • and more.

Core concept of what needs to be deploy

  1. Static content
    • Update the HTML/JS/CSS/images/etc. locally
    • Run npm start to see if it works locally on your machine
    • Just run npm run build and npm run deploy, and you should be good to go
    • And don't forget to commit & push those changes
  2. "Dynamic" content
    • Update docs/default-firebase-data.json
    • Edit the last section of internals/import-temp.js to specify which version you want to update
    • run npx babel-node ./internals/import-temp.js