Download the cloudwatch agent from the AWS Official Docs according to your platform.
Assuming that you are running Ubuntu with x86_64 architecture on your EC2
cd ~Download the cloudwatch agent from the AWS Official Docs according to your platform.
Assuming that you are running Ubuntu with x86_64 architecture on your EC2
cd ~| <?php | |
| namespace App\Console; | |
| use Illuminate\Console\Scheduling\Schedule; | |
| use Illuminate\Foundation\Console\Kernel as ConsoleKernel; | |
| use Laravel\Horizon\Contracts\MasterSupervisorRepository; | |
| // https://smknstd.medium.com/how-to-get-notified-when-laravel-horizon-stops-running-a17206e0adb6 | |
| class Kernel extends ConsoleKernel |
| # --------------------------------------------------------------------------- | |
| # Local development stack. NOT for production / shared hosts. | |
| # --------------------------------------------------------------------------- | |
| BIND_ADDR=127.0.0.1 | |
| # --- PostgreSQL ------------------------------------------------------------ | |
| FORWARD_PGSQL_PORT=5432 | |
| PGSQL_USER=postgres | |
| PGSQL_PASSWORD=postgres |
| #!/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 |
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
Laravel 10+, Horizon 5.x, Redis/Valkey 7+
Prepare application
http://yourapp.com/horizoninactive on horizon dashboardInstall redis-server
# Install x-code command line tools
xcode-select --install
# Install homebrew itself