mirror of
https://github.com/RGBCube/Site
synced 2025-07-31 13:07:46 +00:00
Add apply script
This commit is contained in:
parent
08bc746e47
commit
23cd833b4e
2 changed files with 14 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -18,3 +18,5 @@
|
|||
!*.lock
|
||||
!*.ts
|
||||
!*.tsx
|
||||
|
||||
!*.nu
|
||||
|
|
12
apply.nu
Executable file
12
apply.nu
Executable 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)"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue