Clone the repository to an specific folder
git clone https://github.com/jordihm9/MyInventory.git ./MyInventory
Install depencendies using composer
composer install
composer prepare-dev-environment
composer prepare-prod-environment
composer deploy-local-db
composer mysql
composer stop-local-db
composer set-permisions
- Edit the cron file from the owner of the project (should be
www-data
)
$ sudo crontab -u www-data -e
- Append the following line at the end of the file (every minute will try to execute the schedules from the project)
* * * * * cd /var/www/myinventory.link/ && php artisan schedule:run >> /dev/null 2>&1
Author: Jordi Hernàndez i Magí