Cache compiled CSS files instead of building it
...on each deployment
This commit is contained in:
parent
8cfccb1815
commit
a407655791
1
cache/build/tailwind.css
vendored
Normal file
1
cache/build/tailwind.css
vendored
Normal file
File diff suppressed because one or more lines are too long
11
run.local
11
run.local
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue