From 23cd833b4e455112fffee1f43ad15b2706b00a77 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Sat, 24 Feb 2024 11:47:48 +0300 Subject: [PATCH] Add apply script --- .gitignore | 2 ++ apply.nu | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100755 apply.nu diff --git a/.gitignore b/.gitignore index 6f6027f..2b150a9 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,5 @@ !*.lock !*.ts !*.tsx + +!*.nu diff --git a/apply.nu b/apply.nu new file mode 100755 index 0000000..8374de3 --- /dev/null +++ b/apply.nu @@ -0,0 +1,12 @@ +#!/usr/bin/env nu + +# Applies the changes to the site by uploading it to the VPS. +def main [] { + deno task build --location https://rgbcu.be/ + + cd _site + rsync --delete --recursive --compress ./ cube:/var/www/site + cd - + + echo $"(ansi green)Successfully uploaded!(ansi reset)" +}