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.

Était-ce utile?

La 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.

Autres conseils

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top