Cache compiled CSS files instead of building it

...on each deployment
This commit is contained in:
Oliver Davies 2024-08-18 17:44:00 +01:00
parent 8cfccb1815
commit a407655791
2 changed files with 8 additions and 4 deletions

1
cache/build/tailwind.css vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -66,16 +66,19 @@ function npm:build:css {
function publish { function publish {
git push git push
tag-release tag-release
git push --tags git push --tags
git stash git stash
clean clean
export APP_ENV=prod # Copy cached files, such as generated CSS files.
export NODE_ENV=production cp -r cache/* source
(cd assets && npm:build:css)
generate # export NODE_ENV=production
# (cd assets && npm:build:css)
APP_ENV=prod generate
rsync --archive --verbose --compress --update --delete \ rsync --archive --verbose --compress --update --delete \
output_prod/ ssh.oliverdavies.uk:/var/www/vhosts/www.oliverdavies.uk output_prod/ ssh.oliverdavies.uk:/var/www/vhosts/www.oliverdavies.uk