Topics coming in the next edition:
- ✅ Load balancers from scratch (published on 10th of October)
- ✅ Terraform (published on 12th of November)
- HELM
- Serving static content
- CGI, FastCGI, php-fpm
| location / { | |
| if ( $uri = '/index.html' ) { | |
| add_header Cache-Control "no-cache, no-store, must-revalidate"; | |
| add_header Pragma "no-cache"; | |
| expires off; | |
| } | |
| if ($http_accept ~* "text/html") { | |
| add_header Cache-Control "no-cache, no-store, must-revalidate"; | |
| add_header Pragma "no-cache"; | |
| expires off; |
| <?php | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Console\Concerns\CallsCommands; | |
| use Illuminate\Support\Facades\Http; | |
| use Laravel\Forge\Forge; | |
| use Laravel\Forge\Resources\Daemon; |
| definitions: | |
| caches: | |
| composer: vendor/ | |
| node: frontend/node_modules | |
| steps: | |
| - step: &composer | |
| name: "Install project via composer" | |
| image: composer:2 | |
| caches: | |
| - composer |
To set up php linting, you’ll want to install this PHP CodeSniffer repo and configure with this WordPress Coding Standards repo: . There are a number of ways to do this, whether direct download, Composer, Homebrew, Pear, etc. The following is what works for me on MacOS using Homebrew:
In a terminal window on your Mac, start by updating your Homebrew.
brew doctor
Then install the Code Sniffer:
A Pen by Alex Gallegos on CodePen.
error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
sudo apt-get install libnss3error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory
sudo apt-get install libxss1| /** | |
| * Copyright 2019 Google LLC. | |
| * SPDX-License-Identifier: Apache-2.0 | |
| */ | |
| function getEnvironment() { | |
| var environment = { | |
| spreadsheetID: "<REPLACE WITH YOUR SPREADSHEET ID>", | |
| firebaseUrl: "<REPLACE WITH YOUR REALTIME DB URL>" | |
| }; |