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 {
git push
tag-release
git push --tags
git stash
clean
export APP_ENV=prod
export NODE_ENV=production
(cd assets && npm:build:css)
generate
# Copy cached files, such as generated CSS files.
cp -r cache/* source
# export NODE_ENV=production
# (cd assets && npm:build:css)
APP_ENV=prod generate
rsync --archive --verbose --compress --update --delete \
output_prod/ ssh.oliverdavies.uk:/var/www/vhosts/www.oliverdavies.uk