zsh
terminal
Add these lines in your ~/.bash_profile
file
# Show current git branch name
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
# Install x-code command line tools
xcode-select --install
# Install homebrew iteself
Laravel 8+, Horizon 5.x, Redis 6+
Parepare application
http://yourapp.com/horizon
inactive
on horizon dashbaordInstall redis-server
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
#!/bin/bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
# Run this script without sudo | |
# bash script_name.sh | |
INSTALL_TMP_DIR=~/phpstorm-tmp | |
mkdir -p $INSTALL_TMP_DIR |
version: "3" | |
services: | |
postgres15: | |
image: 'nickblah/postgis:15-postgis-3' | |
container_name: postgres-15 | |
restart: unless-stopped | |
ports: | |
- "${FORWARD_PGSQL_PORT:-5432}:5432" | |
volumes: |
# /etc/nginx/sites-enabled/laravel.conf | |
server { | |
listen 80; | |
# listen 443 ssl; | |
# ssl_certificate /etc/nginx/certs/laravel.test.pem; | |
# ssl_certificate_key /etc/nginx/certs/laravel.test-key.pem; | |
server_name laravel.test *.laravel.test; |