-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdevbox.json
More file actions
76 lines (76 loc) · 2.46 KB
/
devbox.json
File metadata and controls
76 lines (76 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.16.0/.schema/devbox.schema.json",
"packages": [
"php@8.5",
"php85Extensions.pgsql",
"php85Extensions.pdo",
"php85Extensions.pdo_pgsql",
"php85Extensions.protobuf",
"php85Extensions.intl@latest",
"nodejs@22",
"postgresql@17",
"yarn-berry_4@latest",
"concurrently@latest"
],
"shell": {
"init_hook": [],
"scripts": {
"emush": [
"concurrently --prefix \"[{name}]\" --names \"API,APP,ETWIN\" -c \"bgMagenta.bold,bgBlue.bold,bgGreen.bold\" \"cd Api && php -S localhost:8080 -t public\" \"cd App && yarn dev\" \"cd Eternaltwin && yarn eternaltwin start\""
],
"install": [
"devbox services stop || true",
"pkill -f process-compose || true",
"devbox run setup-env-variables",
"devbox run install:postgres",
"devbox run install:api",
"devbox run install:app",
"devbox run install:eternaltwin"
],
"install:api": [
"rm -rf Api/vendor Api/composer.lock",
"cd Api && composer reset",
"php bin/console mush:generate-web-push-keys"
],
"install:app": [
"rm -rf App/.yarn/cache App/node_modules",
"cd App && yarn install"
],
"install:postgres": [
"rm -rf .devbox/virtenv/postgresql/data",
"rm -f .devbox/virtenv/postgresql/.s.PGSQL.5432",
"initdb",
"devbox services start postgresql && sleep 5",
"createuser -s -r postgres",
"chmod +x init_db.sh && ./init_db.sh"
],
"install:eternaltwin": [
"rm -rf Eternaltwin/.yarn/cache Eternaltwin/node_modules",
"cd Eternaltwin && yarn install && yarn eternaltwin db sync"
],
"setup-env-variables": [
"cp Api/.env.bare.metal Api/.env",
"cp Api/.env.bare.metal Api/.env.local",
"cp Api/.env.bare.metal.test Api/.env.test",
"cp Api/.env.bare.metal.test Api/.env.test.local",
"cp App/.env.bare.metal App/.env",
"cp Eternaltwin/eternaltwin.bare.metal.toml Eternaltwin/eternaltwin.local.toml"
],
"start:api": [
"cd Api && php -S localhost:8080 -t public"
],
"start:app": [
"cd App && yarn dev"
],
"start:eternaltwin": [
"cd Eternaltwin && yarn eternaltwin start"
],
"fill-daedalus": [
"cd Api && php bin/console mush:fill-daedalus"
],
"test:app": [
"cd App && yarn test"
]
}
}
}