Question

We've developed a website with brunch, and now we face a problem.

An executable (permisson mode:755) perl script is in the folder app/assets/. After I execute brunch build, the resultant perl script isn't executable any more, and can't be called by CGI. Besides chmod after build or creating soft link, is there any other solution?

Thanks.

Was it helpful?

Solution

Brunch provides a hook called onCompile that allows plugins to run arbitrary code after a compile. This brunch plugin seems like it would be useful as a crib-sheet. Create a plugin that fixes up permissions for your files.

OTHER TIPS

Change "app/assets/YourScript.pl" to "/usr/bin/perl app/assets/YourScript.pl".

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top