From b19a9ab6fdf0ae9018e6738e2fe19cab4b2c7e22 Mon Sep 17 00:00:00 2001 From: Keavon Chambers Date: Sun, 11 Apr 2021 14:38:04 -0700 Subject: [PATCH] Add Cloudflare Pages deployment command as script --- .deployment/cd.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .deployment/cd.sh diff --git a/.deployment/cd.sh b/.deployment/cd.sh new file mode 100644 index 00000000..1ee65110 --- /dev/null +++ b/.deployment/cd.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +echo 🔧 Install Rust +curl https://sh.rustup.rs -sSf | sh -s -- -y +export PATH=$PATH:/opt/buildhome/.cargo/bin + +echo 🚧 Install Node dependencies +cd client/web +npm install + +echo 👷 Build Graphite web client +npm run build