Skip to content

Commit

Permalink
Merge pull request #7 from silverstripeltd/feat/inline-errors
Browse files Browse the repository at this point in the history
Send errors to stderr when sake is run via sushi
  • Loading branch information
Moss Cantwell authored Nov 26, 2020
2 parents f5133c0 + 050ad4c commit 82a5d4a
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 82a5d4a

Please sign in to comment.