Skip to content

Ecommerce template home page

Uladzimir Sadkou edited this page Feb 10, 2024 · 19 revisions

Temporal workflow + Roadrunner + Laravel on the Ubuntu 22.04

install Redis and MySql

https://redis.io/docs/install/install-redis/install-redis-on-linux/

Remove apache2

https://phpcod.com/how-to-remove-apache2-from-ubuntu-server/

sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php8.2 -y
sudo apt-get install -y php8.2-cli php8.2-common php8.2-fpm php8.2-mysql php8.2-zip php8.2-gd php8.2-mbstring php8.2-curl php8.2-xml php8.2-bcmath

cd ~
curl -sS https://getcomposer.org/installer -o /tmp/composer-setup.php
HASH=`curl -sS https://composer.github.io/installer.sig`
php -r "if (hash_file('SHA384', '/tmp/composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
sudo php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer

sudo apt-get install php8.2-dev
sudo apt-get install zlib1g-dev

sudo pecl install grpc

curl -sSf https://temporal.download/cli.sh | sh
 ./.temporalio/bin/temporal server start-dev --db-filename ./.temporalio/local.db --ui-port 8080

./vendor/bin/rr get-binary

edit .rr.ymal


cd ~
git clone https://github.com/GiantVlad/laravel_shop_cart.git shop
cd shop
cp .env.example .env
vim .env #edit
composer install

php artisan key:generate
php artisan config:cache

 ./vendor/bin/rr get-binary

 cp .docker/roadrunner/config/rr.prod.yaml .rr.yaml
vim .rr.yaml #edit

Clone this wiki locally