File tree 2 files changed +8
-2
lines changed
deploy/roles/application/tasks
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 17
17
line : ' aria-bot ALL=(ALL) NOPASSWD:{{source_dir}}/deploy/scripts/export-and-exec.sh'
18
18
validate : ' visudo -cf %s'
19
19
become : yes
20
- when : deployment_mode == 'sandbox '
20
+ when : deployment_mode != 'development '
21
21
22
22
# TODO: these permissions changes are a workaround solution
23
23
Original file line number Diff line number Diff line change @@ -11,7 +11,13 @@ async function runImportScript(git_hash) {
11
11
let importScriptDirectoryPrefix = isDevelopmentProcess ? '.' : './server' ;
12
12
let command = `${ deployDirectoryPrefix } /deploy/scripts/export-and-exec.sh ${ process . env . IMPORT_CONFIG } node ${ importScriptDirectoryPrefix } /scripts/import-tests/index.js` ;
13
13
if ( git_hash ) command += ` -c ${ git_hash } ` ;
14
- if ( process . env . ENVIRONMENT === 'sandbox' ) command = `sudo ${ command } ` ;
14
+ if (
15
+ process . env . ENVIRONMENT === 'sandbox' ||
16
+ process . env . ENVIRONMENT === 'staging' ||
17
+ process . env . ENVIRONMENT === 'production'
18
+ ) {
19
+ command = `sudo ${ command } ` ;
20
+ }
15
21
exec ( command , ( error , stdout , stderr ) => {
16
22
if ( error ) {
17
23
reject ( error ) ;
You can’t perform that action at this time.
0 commit comments