Obfuscate and minify code before deployment in Capistrano 3

137 views
Skip to first unread message

Sergey Dmytryshyn

unread,
Feb 14, 2014, 11:44:31 AM2/14/14
to capis...@googlegroups.com
We can not find the way to obfuscate proprietary code before deploying to customer server.
Seems there are also no way to minify CSS and JS before deployment. We use Java obfuscator and can not install it on production (code security is also an issue).

Versions:
  • Capistrano 3
Platform:
  • Working on Ubuntu
  • Deploying to CentOS

Lee Hambley

unread,
Feb 14, 2014, 12:43:23 PM2/14/14
to capistrano
Capistrano just requires that you deploy from a Git repository. I'd suggest making your CI server (or, wait until http://harrow.io/ is publicly available!) and make a commit to an "obfuscated" branch from which you deploy.

You could of course build the branch by hand, but you can imagine how reliably that'll work!

You can create "orphaned" branches, in Git, with no common history (so-as not to give away your secrets), and deploy from that branch each time. You can also force-push the branch, so that at any given time your `production-obfcs` branch represents your HEAD/master/version, and roll with that.

--
You received this message because you are subscribed to the Google Groups "Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/e93cd8b4-baf1-495f-bfac-a71a302166a2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages