* LAMP/LEMP environment
* PHP >= 7.1
* Redis
* composer (https://getcomposer.org/)
run following commands on root folder
- curl -s https://getcomposer.org/installer | php
- php composer.phar install --prefer-dist
- php composer.phar dump-autoload --optimize
- php artisan migrate --env=YOUR_ENVIRONMENT
- php artisan db:seed --env=YOUR_ENVIRONMENT
- phpunit --bootstrap vendor/autoload.php
- php artisan doctrine:generate:proxies
- php artisan doctrine:clear:metadata:cache
- php artisan doctrine:clear:query:cache
- php artisan doctrine:clear:result:cache
- php artisan doctrine:ensure:production
- php artisan route:clear
- php artisan route:cache
- give proper rights to storage folder (775 and proper users)
- chmod 777 vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer
Laravel may require some permissions to be configured: folders within storage and vendor require write access by the web server.
php artisan doctrine:schema:create --sql --em=model > ss.sql
php artisan doctrine:schema:validate
php artisan doctrine:migrations:generate --connection=config --create=
php artisan doctrine:migrations:status --connection=config
php artisan doctrine:migrations:migrate --connection=config
php artisan doctrine:migrations:generate --connection=model --create=
php artisan doctrine:migrations:status --connection=model
php artisan doctrine:migrations:migrate --connection=model
php artisan queue:work
php artisan queue:work message_broker
php artisan audit:purge-log SUMMIT_ID DATE_BACKWARD_FROM
- SUMMIT_ID: Summit id to clear audit log from
- DATE_BACKWARD_FROM: Maximum date to delete starting from the beginning