Skip to content

Instantly share code, notes, and snippets.

@ericwindham
ericwindham / cap_flatui_deploy.md
Last active September 2, 2022 10:51
Capistrano Deployment with DesignModo's FlatUI Pro framework

This is for those having trouble with the 'designmodo-flatuipro-rails' gem in a rails app when using Capistrano for deployment.

This gem required that we use the 'less' gem in conjunction with the 'bootstrap-on-rails' gem. This bootstrap gem is the Less version.

The error we are dealing with is this: couldn't find file 'jquery.ui.touch-punch.min'

All of the work will be done in the 'config/deploy.rb' file

after "deploy:bundle_gems", "deploy:flat_ui"
// use the smaller size for testing.
const CHUNK_SIZE = 100000; // Arbitrary size until we decide
// const CHUNK_SIZE = 65535; // MySQL TEXT Type
/**
* this code will set up pre_option and pre_update filter for the
* large cache fix
**/
foreach( Ninja_Forms()->form()->get_forms() as $form ){