Install Docker then deploy the project as the following.
install requirements.
sudo apt install composer && sudo apt install php-xml && composer updateadd sail to the project.
composer require laravel/sail --devinstall sail to generate
docker-compsoe.ymlfile, then edit it based on your needs.
php artisan sail:install(re)build and run containers in
docker-compose.ymlfile.
./vendor/bin/sail build --no-cache && ./vendor/bin/sail up -dupdate the access inside the sail container, notice that the sail container name is
<LARAVEL-DIR-NAME>-laravel.test-1.
sudo docker exec -it <LARAVEL-DIR-NAME>-laravel.test-1 bashthen inside the container run
chmod -R 777 . && chmod -R 777 storage/generate key and migrate database.
./vendor/bin/sail artisan key:generate && ./vendor/bin/sail artisan migrate && ./vendor/bin/sail artisan schedule:run