Commit c55dd92e authored by Administrator's avatar Administrator 💬

Pipe STDERR, so we can debug why the server does nothing.

parent c4abf36c
Pipeline #13 passed with stage
in 1 minute and 3 seconds
...@@ -80,10 +80,10 @@ class M3P2Plugin extends Plugin ...@@ -80,10 +80,10 @@ class M3P2Plugin extends Plugin
*/ */
public function onPageInitialized() public function onPageInitialized()
{ {
$out = "Trying to sync content with gitlab…\n"; $out = "Trying to sync content with GitLab…\n";
# shell pwd is project root # shell pwd is project root
$out .= shell_exec("cd user/pages && git pull --rebase origin master") . "\n"; $out .= shell_exec("cd user/pages && git pull --rebase --autostash origin master 2>&1") . "\n";
$out .= shell_exec("fortune | cowsay -e Oø -f dragon") . "\n"; $out .= shell_exec("fortune | cowsay -e Oø -f dragon") . "\n";
$out .= "Done."; $out .= "Done.";
......
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