This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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.' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Add to bottom just before closing `}`: | |
| # Enable gzip compression | |
| gzip on; | |
| gzip_comp_level 5; | |
| gzip_min_length 1100; | |
| gzip_buffers 4 32k; | |
| gzip_types text/plain application/javascript application/x-javascript text/javascript text/xml text/css application/json application/xml+rss | |
| image/svg+xml; | |
| gzip_vary on; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Things for git to not bother with | |
| # | |
| # To avoid dev code being indexed # | |
| robots.txt | |
| # | |
| # OS generated files # | |
| .DS_Store | |
| .DS_Store? | |
| ._* | |
| .Spotlight-V100 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| APP_ENV=dev | |
| SITE_URL=https://dev.example.co.uk | |
| STACHE_ALWAYS_UPDATE=true | |
| STATIC_CACHING_ENABLED=false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| APP_ENV=production | |
| SITE_URL=https://example.co.uk | |
| STACHE_ALWAYS_UPDATE=true | |
| STATIC_CACHING_ENABLED=false | |
| DEBUG=false | |
| DEBUG_BAR=false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # robotstxt.org/ | |
| User-agent: * | |
| Disallow: / | |
| # Allow Twitter access for validation testing | |
| # https://cards-dev.twitter.com/validator | |
| User-agent: Twitterbot | |
| Disallow: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # robotstxt.org/ | |
| User-agent: * | |
| Disallow: | |
| # Update the domain below | |
| Host: https://example.co.uk | |
| Sitemap: https://example.co.uk/sitemap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Please run as root" | |
| exit | |
| fi | |
| apt-get install pkg-config libmagickwand-dev -y | |
| cd /tmp | |
| wget https://pecl.php.net/get/imagick-3.4.3.tgz | |
| tar xvzf imagick-3.4.3.tgz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ErrorDocument 404 /404.html | |
| # | |
| RewriteEngine on | |
| RewriteBase / | |
| # | |
| # Redirect all www traffic to non-www (naked domain) | |
| RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] | |
| RewriteRule ^(.*)$ http://%1/$1 [R=301,L] | |
| # | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"userAgent":"Mozilla/5.0 (X11; CrOS x86_64 12239.57.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.90 Safari/537.36","environment":{"networkUserAgent":"Mozilla/5.0 (X11; CrOS x86_64 12239.57.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.90 Safari/537.36","hostUserAgent":"Mozilla/5.0 (X11; CrOS x86_64 12239.57.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.90 Safari/537.36","benchmarkIndex":604},"lighthouseVersion":"5.1.0","fetchTime":"2019-08-07T12:06:06.801Z","requestedUrl":"https://wesort.co.uk/","finalUrl":"https://wesort.co.uk/","runWarnings":[],"audits":{"is-on-https":{"id":"is-on-https","title":"Uses HTTPS","description":"All sites should be protected with HTTPS, even ones that don't handle sensitive data. HTTPS prevents intruders from tampering with or passively listening in on the communications between your app and your users, and is a prerequisite for HTTP/2 and many new web platform APIs. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/ht |