lk-students/Makefile

71 lines
1.1 KiB
Makefile
Raw Normal View History

2024-04-17 10:29:25 +03:00
start:
php artisan serve
start-frontend:
npm run dev
setup:
composer install
cp -n .env.example .env
php artisan key:gen --ansi
touch database/database.sqlite
php artisan migrate:refresh
php artisan db:seed
npm ci
npm run build
make ide-helper
setup-ci:
composer install
cp -n .env.example .env
php artisan key:gen --ansi
touch database/database.sqlite
php artisan migrate:refresh
php artisan db:seed
npm ci
npm run build
setup-prod:
2024-04-22 11:28:56 +03:00
composer install
2024-04-17 10:29:25 +03:00
npm ci
npm run build
watch:
npm run watch
migrate:
php artisan migrate
console:
php artisan tinker
log:
tail -f storage/logs/laravel.log
test:
php artisan test
test-coverage:
XDEBUG_MODE=coverage php artisan test --coverage-clover build/logs/clover.xml
deploy:
git push heroku
lint:
composer exec phpcs -- --standard=PSR12 app routes tests
lint-fix:
composer exec phpcbf -- --standard=PSR12 app routes tests
ide-helper:
php artisan ide-helper:eloquent
php artisan ide-helper:gen
php artisan ide-helper:meta
php artisan ide-helper:mod -n
db-prepare:
php artisan migrate:refresh --force --seed
start-app:
php artisan serve --host 0.0.0.0 --port ${PORT}