Commit 38cea05b by Paul Kofmann

setting writable folders in init-script

It is said, that these folders are handled already by composer.json, what is definitely true. But if I can't (or don't want to) call composer create-project command, I have to run post-create-project-cmd manually like `composer run-script post-create-project-cmd`. IMHO, it's consistent to make such preparations in init script.
parent 264cf81e
...@@ -20,7 +20,12 @@ return [ ...@@ -20,7 +20,12 @@ return [
'Development' => [ 'Development' => [
'path' => 'dev', 'path' => 'dev',
'writable' => [ 'writable' => [
// handled by composer.json already 'backend/runtime',
'backend/web/assets',
'console/runtime',
'console/migrations',
'frontend/runtime',
'frontend/web/assets',
], ],
'executable' => [ 'executable' => [
'yii', 'yii',
...@@ -29,7 +34,12 @@ return [ ...@@ -29,7 +34,12 @@ return [
'Production' => [ 'Production' => [
'path' => 'prod', 'path' => 'prod',
'writable' => [ 'writable' => [
// handled by composer.json already 'backend/runtime',
'backend/web/assets',
'console/runtime',
'console/migrations',
'frontend/runtime',
'frontend/web/assets',
], ],
'executable' => [ 'executable' => [
'yii', 'yii',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment