Skip to content

Commit 732543e

Browse files
committed
Build ORM schema before workers start
1 parent 1b5f917 commit 732543e

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

frameworks/PHP/spiral/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Debug mode disabled view cache and enabled higher verbosity.
2+
APP_ENV=prod
23
DEBUG=false
34
DB_DSN=mysql:host=tfb-database:3306;charset=utf8;dbname=hello_world;user=benchmarkdbuser;password=benchmarkdbpass
45

frameworks/PHP/spiral/.rr.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ rpc:
44
listen: tcp://127.0.0.1:6001
55

66
server:
7+
on_init:
8+
command: "php app.php cycle"
79
command: "php app.php"
810
relay: pipes
911

frameworks/PHP/spiral/composer.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@
1616
"spiral/roadrunner-bridge": "^3.0",
1717
"spiral/roadrunner-cli": "^2.4"
1818
},
19-
"scripts": {
20-
"post-create-project-cmd": [
21-
"php -r \"copy('.env.sample', '.env');\"",
22-
"php app.php encrypt:key -m .env",
23-
"php app.php configure -vv",
24-
"rr get-binary --quiet"
25-
]
26-
},
2719
"autoload": {
2820
"psr-4": {
2921
"App\\": "app/src/"

0 commit comments

Comments
 (0)