https://tailwindcss.com/docs/upgrade-guide#using-the-upgrade-tool
Step 1. Change inmports any *.css file:
From:
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
https://tailwindcss.com/docs/upgrade-guide#using-the-upgrade-tool
Step 1. Change inmports any *.css file:
From:
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
Warning: This process rewrites history. Teams beware!
I've found this useful to remove images from being stored within a Statamic website's repo and instead being backed-up to Digitalocean spaces. GitHub recommends this and I've followed this process a few times. Your mileage may vary.
1. Check current size of repo (on dev server or locally):
wget -e robots=off --mirror --page-requisites --convert-links --adjust-extension --no-if-modified-since --no-check-certificate --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36" https://example.com |
<LifecycleConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
<Rule> | |
<ID>Prune files starting with backup- after 30 days</ID> | |
<Prefix>backup-</Prefix> | |
<Status>Enabled</Status> | |
<Expiration> | |
<Days>30</Days> | |
</Expiration> | |
</Rule> | |
</LifecycleConfiguration> |
location / { | |
proxy_pass http://localhost:3000/; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection 'upgrade'; | |
proxy_set_header Host $host; | |
proxy_cache_bypass $http_upgrade; | |
} |
This is a command line tool for syncing with DigitalOcean Spaces or Amazon S3.
I'm using this in the context of .gitignore'ing Assets from a Statamic site.
DigitalOcean Spaces with s3cmd
Creating and configuring a new site / environment occurs occasionally. Often, to update the underlying server software.
This site has been built with:
php artisan cache:clear # Clear the Laravel application cache. | |
php artisan config:cache # Clear and refresh the Laravel config cache. | |
php artisan route:cache # Clear and refresh the Laravel route cache. | |
php artisan statamic:stache:warm # Warm the Statamic stache. | |
php artisan statamic:search:update --all # Update the search index. | |
php artisan statamic:static:clear # Clear the Statamic static cache (if you use this). | |
#php artisan statamic:static:warm --queue # Warm the Statamic static cache (if you use this). | |
echo 'warming /work ...' | |
curl -# https://example.com/large-page > /dev/null | |
echo '/work is warmed.' |
# Add to bottom just before closing `}`: | |
# Enable gzip compression | |
gzip on; | |
gzip_min_length 1100; | |
gzip_buffers 4 32k; | |
gzip_types text/plain application/javascript application/x-javascript text/javascript text/xml text/css; | |
gzip_vary on; | |
# Expire headers on static assets | |
# CSS and Javascript |