/AIS-WWW

:spider_web: web page for AI-speaker project

Primary LanguageHTML

Website

This website is built using Docusaurus 2, a modern static website generator.

Installation

$ yarn

Local Development

$ yarn start

This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.

Build

$ yarn build

This command generates static content into the build directory and can be served using any static contents hosting service.

Test

$ npx http-server build -p 3000

Deployment

AIS dom Server

rsync to staging folder

rsync -e "ssh -p 7777" --delete --progress --stats -ravzh /AIS-WWW/build/ server-user@SERVER-IP:/var/www/ais-www-staging

on server:

cd /var/www/AIS-WWW
# rm all except apt and audio folder
rm -rf !(apt|audio|ota)
cp -R /var/www/ais-www-staging/* /var/www/AIS-WWW

Update OTA only

  1. add files to /static/o

to GitHub

#### to GitHub

$ GIT_USER= yarn deploy


If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.

$ GIT_USER=<Your GitHub username> yarn deploy

If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch. ta 2. add info to /static/ota/index.html 3. commit & push to GitHub 4. rsync

rsync -e "ssh -p 7777" --delete --progress --stats -ravzh /home/andrzej/Projects/AIS-WWW/static/ota/ server-user@SERVER-IP:/var/www/AIS-WWW/ota