开发者

Trying to execute SASS from PHP via exec() function

开发者 https://www.devze.com 2023-03-26 12:34 出处:网络
I have a site with color setti开发者_如何转开发ngs in the admin. You change your colors, it saves a .scss file and runs exec(\'sass file.scss file.css\'). Works fine locally (on MAMP), but fails on se

I have a site with color setti开发者_如何转开发ngs in the admin. You change your colors, it saves a .scss file and runs exec('sass file.scss file.css'). Works fine locally (on MAMP), but fails on server. First, I turned off safe mode. Second, I checked, using exec(), to see if it had access to the anything. It did, but when running sass --help, sass -v, or anything with sass, no output was returned.

Anyone do this before or know what could be causing it? I'm running on Media Temple, if that helps.


a) Do you have sass installed on the target server?
b) Is the sass executable in your PATH?
c) See here for the meanings of exit codes
http://en.tldp.org/LDP/abs/html/exitcodes.html

126: Permission problem or command is not an executable
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号