A headless Floobits workspace and disk watcher. Handy for shipping changes to a testing server.
-
npm install floomatic
-
Go to your Floobits user settings.
-
Copy your
~/.floorc
from that page. Save it locally to~/.floorc
.
Now you're all set!
floomatic --share /path/to/share
floomatic --join https://floobits.com/owner_name/workspace_name
If you don't want to ship local changes to the Floobits server, use --read-only
floomatic --read-only --join https://floobits.com/owner_name/workspace_name
floomatic reads hooks from .floo in the base path of the shared directory. The format of .floo is:
{
"url": "https://floobits.com/owner/workspace",
"hooks": {
"**": "/etc/init.d/apache restart",
"static/less/**": "less static/less/*"
}
}
The hooks in this example will restart apache whenever any file in the workspace gets changed, and will regenerate css from less whenever less files change. Patterns are matched by minimatch.