Ask HN: Best way(s) to distribute a self-hosted, non-compiled product
Say you have a product written in Ruby, Python, PHP etc. and you would like to distribute it as a self-hosted solution.
What are the best ways to go about doing this without having to worry about people ripping off your code?
I assume answers will fall into some of the following categories:
- compile/obfuscate code (i.e. cpython)
- submit product as a virtual image (like github enterprise)
- just don't care and rely on your bundled licenses
Each has their own up/down sides. Discuss. :)
6 comments
[ 2.6 ms ] story [ 26.7 ms ] threadThe rest are not my customers and worrying about them is a distraction.
But really it depends on who you are selling to and what you are selling, some companies just have the customer pay for a server and then the company ships it out with a guy to install it (better for small businesses that don't have dedicated sysadmins).
It obfuscates your code well.
The most viable target market for self-hosted products are still entreprises ; deployment via virtual images might be the most feasable solution for all parties involved.
Second-best option, specifically for eg. PHP, might be compiling the code into executables (via eg. https://github.com/facebook/hiphop-php ), and distributing distro-specific executables.
Re: 3rd option, the specific worry about distributing code in any form isn't piracy (as pointed out by firstprimate, those aren't your customers); rather, blatant ripoffs engaging in marketing-only competition using a rebranded version of your own product.