This project is credited to the following YouTube Tutorial: YouTube Tutorial. and was cloned by me with the sole purpose to educate myself about deploying a Laravel app built with Inertia Vue.js on Hostinger.
The application is deployed on the following domain laravel-space.com
git clone https://github.com/mkgy/my-dev-space.com.git
Navigate into project folder using terminal and run
docker run --rm \
-u "$(id -u):$(id -g)" \
-v "$(pwd):/var/www/html" \
-w /var/www/html \
laravelsail/php83-composer:latest \
composer install --ignore-platform-reqs
cp .env.example .env
./vendor/bin/sail up -d
From now on whenever you want to run artisan command you should do this from the container.
Access to the docker container
./vendor/bin/sail bash
php artisan key:generate --ansi
php artisan migrate