Skip to content

Commit

Permalink
dump errors to stderr when sake is run via sushi
Browse files Browse the repository at this point in the history
  • Loading branch information
Moss Cantwell committed Nov 19, 2020
1 parent f5133c0 commit 050ad4c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions files/deploy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
error_log=""
display_errors="stderr"
8 changes: 8 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,12 @@
group => 'root',
mode => '0700',
}

file { "${cli_root}/deploy.ini":
ensure => present,
owner => $cli_owner,
group => $cli_group,
source => 'puppet:///modules/ss_sushi/deploy.ini',
mode => '0644',
}
}
2 changes: 1 addition & 1 deletion templates/sushi_script.erb
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ fi
chmod +x "$SAKE_PATH"

# Preserves env
sudo -E -u www-data "$SAKE_PATH" "$@"
sudo -E -u www-data PHP_INI_SCAN_DIR=:<%= @cli_root %> "$SAKE_PATH" "$@"

0 comments on commit 050ad4c

Please sign in to comment.