Skip to content

Commit cf3f0f8

Browse files
authored
Merge pull request #48 from wayofdev/develop
chore: merge develop into master
2 parents 34330bb + 69303aa commit cf3f0f8

31 files changed

+2132
-1117
lines changed

.env.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ SHARED_SERVICES_NAMESPACE=ss
1515
# https://docs.docker.com/compose/reference/envvars/#compose_project_name
1616
COMPOSE_PROJECT_NAME=spiral-starter-tpl
1717

18+
# You can disable logging for containers by setting "none" as log driver
19+
DOCKER_APP_LOG_DRIVER=json-file
20+
DOCKER_DATABASE_LOG_DRIVER=json-file
21+
DOCKER_MAIL_LOG_DRIVER=json-file
22+
DOCKER_STORAGE_LOG_DRIVER=json-file
23+
DOCKER_TEMPORAL_DATABASE_LOG_DRIVER=json-file
24+
DOCKER_TEMPORAL_LOG_DRIVER=json-file
25+
DOCKER_TEMPORAL_UI_LOG_DRIVER=json-file
26+
1827
#######################################
1928
# Spiral default environment variables
2029
#######################################

Makefile

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,22 +149,32 @@ prepare:
149149
# Docker Actions
150150
# ------------------------------------------------------------------------------------
151151
up: # Creates and starts containers, defined in docker-compose and override file
152-
$(DOCKER_COMPOSE) up --remove-orphans -d
152+
$(DOCKER_COMPOSE) up --remove-orphans -d --wait
153153
@sleep 1
154154
$(DOCKER_COMPOSE) exec app wait4x postgresql 'postgres://${DB_USERNAME}:${DB_PASSWORD}@database:5432/${DB_DATABASE}?sslmode=disable' -t 1m
155155
$(DOCKER_COMPOSE) exec app wait4x tcp '${TEMPORAL_ADDRESS}' -t 1m
156156
@echo ""
157157
@echo "${GREEN}Project is up and running!${RST}"
158158
@echo ""
159-
@echo "${BLUE}API:${RST} https://api.${COMPOSE_PROJECT_NAME}.docker"
160-
@echo "${BLUE}Temporal UI:${RST} https://temporal.${COMPOSE_PROJECT_NAME}.docker"
159+
@echo "${BLUE}API:${RST} https://api.${COMPOSE_PROJECT_NAME}.docker"
160+
@echo "${BLUE}Temporal UI:${RST} https://temporal.${COMPOSE_PROJECT_NAME}.docker"
161+
@echo "${BLUE}Mailpit UI (Fake SMTP):${RST} https://mail.${COMPOSE_PROJECT_NAME}.docker"
162+
@echo "${BLUE}MinIO UI (Local S3):${RST} https://storage.${COMPOSE_PROJECT_NAME}.docker"
161163
@echo ""
162164
.PHONY: up
163165

164166
down: # Stops and removes containers of this project
165167
$(DOCKER_COMPOSE) down --remove-orphans
166168
.PHONY: down
167169

170+
up-app:
171+
$(DOCKER_COMPOSE) up -d app
172+
.PHONY: up-app
173+
174+
down-app:
175+
$(DOCKER_COMPOSE) down app
176+
.PHONY: down-app
177+
168178
purge: ## Stops and removes containers, volumes, networks and images
169179
$(DOCKER_COMPOSE) down --remove-orphans --volumes
170180
$(DOCKER) network prune --force
@@ -373,7 +383,8 @@ db-refresh: ## Delete migration files, wipe database, create new migrations, run
373383
.PHONY: db-refresh
374384

375385
db-migrate: ## Run all pending migrations
376-
$(APP_EXEC) php artisan migrate
386+
@#$(APP_EXEC) php artisan migrate
387+
$(APP_EXEC) php app.php cycle:migrate --split --run
377388
.PHONY: db-migrate
378389

379390
#

README.md

Lines changed: 256 additions & 232 deletions
Large diffs are not rendered by default.

app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
/runtime
44
rr*
55
protoc-gen-php-grpc*
6+
.env

app/composer.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,30 +40,32 @@
4040
"ext-pdo": "*",
4141
"ext-sockets": "*",
4242
"beberlei/assert": "^3.3",
43-
"cycle/annotated": "^4.1",
43+
"cycle/annotated": "^4.2",
4444
"cycle/database": "^2.11",
45-
"cycle/orm": "^2.8",
45+
"cycle/entity-behavior": "^1.3",
46+
"cycle/entity-behavior-uuid": "^1.2",
47+
"cycle/orm": "^2.9",
4648
"eventsauce/eventsauce": "^3.6",
4749
"illuminate/collections": "^9.52",
48-
"monolog/monolog": "^3.7",
50+
"monolog/monolog": "^3.8",
4951
"ramsey/uuid": "^4.7",
5052
"spiral-packages/laravel-validator": "^1.1",
5153
"spiral-packages/league-event": "^1.0",
52-
"spiral-packages/scheduler": "^2.1",
54+
"spiral-packages/scheduler": "^2.3",
5355
"spiral-packages/yii-error-handler-bridge": "^1.1",
54-
"spiral/cycle-bridge": "^2.9",
56+
"spiral/cycle-bridge": "^2.10",
5557
"spiral/data-grid-bridge": "^3.0",
56-
"spiral/framework": "^3.13",
58+
"spiral/framework": "^3.14",
5759
"spiral/http": "^3.8",
5860
"spiral/nyholm-bridge": "^1.3",
59-
"spiral/roadrunner-bridge": "^3.6",
61+
"spiral/roadrunner-bridge": "^3.7",
6062
"spiral/roadrunner-cli": "^2.6",
61-
"spiral/sapi-bridge": "^1.0",
62-
"spiral/sentry-bridge": "^2.2",
63-
"spiral/temporal-bridge": "^3.1",
63+
"spiral/sapi-bridge": "^1.1",
64+
"spiral/sentry-bridge": "^2.3",
65+
"spiral/temporal-bridge": "^3.2",
6466
"spiral/views": "^3.8",
6567
"symfony/console": "^7.1",
66-
"temporal/sdk": "^2.10"
68+
"temporal/sdk": "^2.11"
6769
},
6870
"require-dev": {
6971
"ergebnis/phpunit-slow-test-detector": "^2.15",

0 commit comments

Comments
 (0)