1
Fork 0
mirror of https://github.com/RGBCube/Site synced 2025-08-01 13:37:49 +00:00

Add apply script

This commit is contained in:
RGBCube 2024-02-24 11:47:48 +03:00
parent 08bc746e47
commit 23cd833b4e
No known key found for this signature in database
2 changed files with 14 additions and 0 deletions

2
.gitignore vendored
View file

@ -18,3 +18,5 @@
!*.lock !*.lock
!*.ts !*.ts
!*.tsx !*.tsx
!*.nu

12
apply.nu Executable file
View file

@ -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)"
}