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 {
|
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
|
||||||
|
|
Loading…
Reference in a new issue