forked from eatvio/eatvio-infra
Merge pull request 'main' (#5) from alex_chevski/eatvio-infra:main into main
Reviewed-on: eatvio/eatvio-infra#5
This commit is contained in:
17
Makefile
17
Makefile
@@ -24,6 +24,12 @@ copy-infra-env:
|
||||
run-migrations:
|
||||
docker-compose exec php-fpm ./artisan migrate
|
||||
|
||||
run-plan-seed:
|
||||
docker-compose exec php-fpm ./artisan db:seed --class=PlanTablesSeeder
|
||||
|
||||
seed-db:
|
||||
docker-compose exec php-fpm ./artisan db:seed
|
||||
|
||||
fix-permissions:
|
||||
docker-compose exec php-fpm chown -R www-data:www-data storage
|
||||
|
||||
@@ -32,11 +38,20 @@ lint-code-style:
|
||||
|
||||
artisan:
|
||||
docker-compose exec php-fpm ./artisan $(ARGS)
|
||||
|
||||
mysql-console:
|
||||
docker-compose exec mysql mysql -u${MYSQL_USER} -p${MYSQL_PASSWORD} ${MYSQL_DATABASE}
|
||||
|
||||
init: clone copy-infra-env compose-down compose-up setup-laravel-packages copy-laravel-env setup-laravel-key run-migrations fix-permissions
|
||||
start-frontend:
|
||||
docker-compose exec php-fpm npm run watch
|
||||
|
||||
start-frontend-prod:
|
||||
docker-compose exec php-fpm npm run production
|
||||
|
||||
make-storage-link:
|
||||
docker-compose exec php-fpm ./artisan storage:link
|
||||
|
||||
node-frontend-deps:
|
||||
docker-compose exec php-fpm npm i --legacy-peer-deps
|
||||
|
||||
init: clone copy-infra-env compose-down compose-up setup-laravel-packages copy-laravel-env setup-laravel-key run-migrations node-frontend-deps start-frontend-prod fix-permissions make-storage-link
|
||||
|
||||
@@ -9,3 +9,8 @@ RUN apt-get update; \
|
||||
php8.2-pgsql; \
|
||||
apt-get clean; \
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
|
||||
|
||||
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash -
|
||||
RUN apt-get update && apt-get install -y nodejs && npm install -g npm@10.1.0
|
||||
|
||||
ENV PATH=node_modules/.bin:$PATH
|
||||
|
||||
Reference in New Issue
Block a user