-
Notifications
You must be signed in to change notification settings - Fork 5
/
install.js
executable file
·33 lines (31 loc) · 1.16 KB
/
install.js
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
#!/usr/bin/env node
var steps = [
{
'message' : 'Права на директории',
'commands' : [
'sudo chown dvp:dvp -R ' + __dirname + '/app',
'sudo chown dvp:www-data -R ' + __dirname + '/app/runtime',
'sudo chmod g+w -R ' + __dirname + '/app/runtime',
'sudo mkdir ' + __dirname + '/app/web/assets',
'sudo chown dvp:www-data -R ' + __dirname + '/app/web/assets',
'sudo chmod g+w -R ' + __dirname + '/app/web/assets'
]
},
{
'message' : 'Установка зависимостей',
'commands' : [
'cd ' + __dirname + '/app && composer install'
]
},
{
'message' : 'Права на директории',
'commands' : [
'sudo chown dvp:dvp -R ' + __dirname + '/app',
'sudo chown dvp:www-data -R ' + __dirname + '/app/runtime',
'sudo chmod g+w -R ' + __dirname + '/app/runtime',
'sudo chown dvp:www-data -R ' + __dirname + '/app/web/assets',
'sudo chmod g+w -R ' + __dirname + '/app/web/assets'
]
}
];
require('shell-done')(steps);