Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.31 KB

README.md

File metadata and controls

54 lines (36 loc) · 1.31 KB

QUAK Website

This is README.md for QUAK.COM.PL website maintenance.

Please don't complain about this code base, I'm writing it in my free time mostly, still... code contains seniorish flavors.

Codebase is focused on MDX -> static HTML export (with Nextra, Next.js, Markdown, React) + CD

Local Development

$ pnpm i
$ pnpm dev  # localhost:3000

Deploy

Install script dependencies

$ cd scripts/deploy
$ pnpm i

Environment Variables

To run the deploy script to the CPanel, you need to have the following environment variables set:

Store variables in quak-docs/sripts/deploy/.env

# Username and password for the CPanel
USERNAME=your-username
PASSWORD=your-password

Usage

Build, export to static HTML and Deploy

Use when you want to deploy the website for the first time or when you want to deploy a new version of the website.

$ sh scripts/build-deploy.sh 'Archive_19_05_2024_3.zip'

Deploy another version

Use to deploy another version of the website. Useful when the website is already deployed and you want to deploy another version from given zip package.

Remember to put Archive_17_05_2024.zip in the quak-docs/out/ directory.

$ sh scripts/change-version.sh 'Archive_17_05_2024.zip'