This document helps get your macOS development environment up and running with the latest versions of Homebrew, Apache, PHP, and MariaDB.
12.34.56.78255.255.255.012.34.56.1root user (sudo su).nginx in /opt/redash.certs and certs-data./opt/redash/nginx/nginx.conf and place the following in it: (replace example.redashapp.com with your domain name)
upstream redash {
server redash:5000;
}
To support my open-source work, consider adding me on Patreon.
An easy to refer to document for regularly setting up macOS 10.14 Mojave.
The topic of recipe-based frequent fresh reinstalls of macOS is a controversial issue. Some people are against reinstalling macOS, citing that they have never had an issue with Apple provided upgrade installs.
| <?php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Http\Request; | |
| class JsonMiddleware | |
| { | |
| public function handle(Request $request, Closure $next) |
initialize: once, when the controller is first instantiatedconnect: anytime the controller is connected to the DOMinitialize: once, when the controller is first instantiatedconnect: anytime the controller is connected to the DOMWhen setting these options consider the following:
sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log| axios({ | |
| url: 'http://localhost:5000/static/example.pdf', | |
| method: 'GET', | |
| responseType: 'blob', // important | |
| }).then((response) => { | |
| const url = window.URL.createObjectURL(new Blob([response.data])); | |
| const link = document.createElement('a'); | |
| link.href = url; | |
| link.setAttribute('download', 'file.pdf'); | |
| document.body.appendChild(link); |
| # 1. Install brew --> http://brew.sh/ | |
| # 2. run the following commands in your Terminal | |
| brew tap homebrew/dupes | |
| brew tap homebrew/versions | |
| brew tap homebrew/homebrew-php | |
| brew install --with-openssl curl | |
| brew install --with-homebrew-curl --with-apache php71 | |
| brew install php71-mcrypt php71-imagick | |
| # 3. Follow these instructions to make Apache and php-cli use the newer php executable and make the change persist after reboot. | |
| brew info php71 |