This commit is contained in:
parent
a6603432a5
commit
b835677348
4 changed files with 21 additions and 11 deletions
16
app/Makefile
16
app/Makefile
|
@ -25,10 +25,10 @@ endif
|
||||||
|
|
||||||
fresh: ## Starts a Fresh Local Instance
|
fresh: ## Starts a Fresh Local Instance
|
||||||
@make down -s
|
@make down -s
|
||||||
@symfony composer install -s
|
@symfony composer install
|
||||||
@npm i .s
|
@npm i
|
||||||
@make up .s
|
@make up -s
|
||||||
@make db-demo s
|
@make db-demo -s
|
||||||
|
|
||||||
|
|
||||||
##|——[ Code Quality ]————————————————————————————————————————————————————————————————————|
|
##|——[ Code Quality ]————————————————————————————————————————————————————————————————————|
|
||||||
|
@ -55,9 +55,9 @@ lint-twig: ## Runs Twig Linting
|
||||||
|
|
||||||
##|——[ Data ]————————————————————————————————————————————————————————————————————————————|
|
##|——[ Data ]————————————————————————————————————————————————————————————————————————————|
|
||||||
db-demo: ## Writes the Demo Data to the Local Instance
|
db-demo: ## Writes the Demo Data to the Local Instance
|
||||||
symofny console doctrine:database:drop --if-exists --force
|
symfony console doctrine:database:drop --if-exists --force
|
||||||
symofny console doctrine:database:create
|
symfony console doctrine:database:create
|
||||||
symofny console doctrine:schema:update --force
|
symfony console doctrine:schema:update --force
|
||||||
symfony console doctrine:fixtures:load -n
|
symfony console doctrine:fixtures:load -n
|
||||||
symfony console cache:clear
|
symfony console cache:clear
|
||||||
|
|
||||||
|
@ -65,4 +65,4 @@ db-migration-gen: ## Generates a Migration
|
||||||
symfony console doctrine:migration:diff
|
symfony console doctrine:migration:diff
|
||||||
|
|
||||||
db-migration-do: ## Does the Migration
|
db-migration-do: ## Does the Migration
|
||||||
symfony console doctrine:migration:migrate
|
symfony console doctrine:migration:migrate
|
||||||
|
|
|
@ -32,6 +32,13 @@ current_php_version=$(symfony php -r "echo PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSI
|
||||||
} && \
|
} && \
|
||||||
printf >&2 "${GREEN_FG}✔ PHP${BLUE_FG} Version ${GREEN_FG}${current_php_version}${BLUE_FG} is ${GREEN_FG}installed${BLUE_FG}.\n"
|
printf >&2 "${GREEN_FG}✔ PHP${BLUE_FG} Version ${GREEN_FG}${current_php_version}${BLUE_FG} is ${GREEN_FG}installed${BLUE_FG}.\n"
|
||||||
|
|
||||||
|
# Check PHP PDO_MYSQL
|
||||||
|
php -m | grep -i pdo_mysql >/dev/null 2>&1 || \
|
||||||
|
{ \
|
||||||
|
printf >&2 "${RED_FG}✘ PHP PDO_MSQL${YELLOW_FG} is ${RED_FG}not installed${YELLOW_FG}!\n"; \
|
||||||
|
exit 1; \
|
||||||
|
}
|
||||||
|
|
||||||
# Check Composer
|
# Check Composer
|
||||||
command -v composer >/dev/null 2>&1 || \
|
command -v composer >/dev/null 2>&1 || \
|
||||||
{ \
|
{ \
|
||||||
|
|
|
@ -9,8 +9,11 @@ COLOR_CLEAR='0'
|
||||||
COLOR_FG='3'
|
COLOR_FG='3'
|
||||||
COLOR_BG='4'
|
COLOR_BG='4'
|
||||||
|
|
||||||
COLOR_WHITE='8'
|
COLOR_WHITE='9'
|
||||||
COLOR_BLACK='7'
|
COLOR_LIGHT_GRAY='8'
|
||||||
|
COLOR_GRAY='7'
|
||||||
|
COLOR_BLACK='0'
|
||||||
|
|
||||||
COLOR_RED='1'
|
COLOR_RED='1'
|
||||||
COLOR_GREEN='2'
|
COLOR_GREEN='2'
|
||||||
COLOR_YELLOW='3'
|
COLOR_YELLOW='3'
|
||||||
|
|
|
@ -9,7 +9,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- 'mysql_data:/var/lib/mysql'
|
- 'mysql_data:/var/lib/mysql'
|
||||||
environment:
|
environment:
|
||||||
MSQL_ROOT_PASSWORD: 'empty'
|
MYSQL_ROOT_PASSWORD: 'empty'
|
||||||
###< doctrine/doctrine-bundle ###
|
###< doctrine/doctrine-bundle ###
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Reference in a new issue