Skip to content

Commit 90a4947

Browse files
committed
feat(scripts) add copy env file and auto migrate
1 parent 308ac09 commit 90a4947

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

composer.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,13 @@
2929
},
3030
"require-dev": {
3131
"symfony/var-dumper": "^7.1"
32+
},
33+
"scripts": {
34+
"post-root-package-install": [
35+
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
36+
],
37+
"post-create-project-cmd": [
38+
"@php alisa migrate:up"
39+
]
3240
}
33-
}
41+
}

0 commit comments

Comments
 (0)