WebFaction
Community site: login faq

Hello,

I'm trying to speed up deploy. The idea is that every developer in the team can run the PHP script (via web browser) and do deploy. Here is code:

exec('hg pull -u', $output);
var_dump($output);

but nothing is happend, result is only the empty array. Is this possible?

EDIT

After some researching I'm found this solution:

putenv('PATH='. getenv('PATH') .':/home/username/bin');
exec('hg pull -u 2>&1', $output);
var_dump($output);

asked 16 Mar '12, 07:15

salebab
112
accept rate: 0%

edited 16 Mar '12, 08:17

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×262
×14

question asked: 16 Mar '12, 07:15

question was seen: 4,056 times

last updated: 16 Mar '12, 08:17

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM