sensational / sassphp

PHP bindings to libsass - fast, native Sass parsing in PHP!
Other
229 stars 39 forks source link

Can I safely compile the sass.so on another box? #41

Open michalrames opened 5 years ago

michalrames commented 5 years ago

I am deploying application that relies on sassphp in AWS autoscaling group, using AWS launch templates for provisioning. The instances only have 1GB RAM which is too little for libsass code build.

Because I don't understand C make process enough, I am asking the following question:

Can I safely build the sass.so as is, on another machine (same OS i.e. Ubuntu 18.x) and then simply copy it into the autoscaled instance during provisioning?

underdarknl commented 5 years ago

If the other host has the same target php version, same glib versions and same kernel there should be no issues as all the c level api's will be the same. This is exactly what distributions put in their rpm / deb files for you to install.