We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Zephir : how to deploy modules to production?

Hi,

I've been playing around with Zephir and I absolutely love it. I am currently creating a small module.

In my dev environment, I don't mind doing building from source, but for the production environment I want to deploy in a safer way. Is it possible to package the module in some way to make installation easier and to avoid putting our sources on the client's servers?

Thanks in advance,

Jeroen



34.6k
Accepted
answer

Hello,

You can copy the generated binary available in modules/name-of-your-extension.so to a compatible environment without having to copy the source code.

BTW, Zephir has its own forum: https://forum.zephir-lang.com/

Thanks, I'll post to the other forum next time. Maybe you should add a link to www.zephir-lang.com to the forum, did not realize there was a forum too there.

Hello,

You can copy the generated binary available in modules/name-of-your-extension.so to a compatible environment without having to copy the source code.

BTW, Zephir has its own forum: https://forum.zephir-lang.com/

I also did not know there was a separate forum, looking now