Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Snippet Sync not syncing to file system

Status Resolved
Add-on / Version 1.3.5
Severity Critical
EE Version 2.7.3

Derrick Grigg

Feb 10, 2014

I have installed and uninstalled numerous times attempting to get the snippets to sync with no luck. I have double checked the permissions on the directory which are 666.

These are my config settings in the EE system config.php
  //Snippet settings
  $env_config[‘snippet_file_basepath’] = $base_path . ‘../snippets’;
  $env_config[‘snippets_sync_prefix’]  = ‘snippet_’;
  $env_config[‘snippets_sync_suffix’] = ‘_’;

which I can see in the EE debug output

snippet_file_basepath   /wwwroot/215Mccann/html/../snippets
snippets_sync_prefix   snippet_
snippets_sync_suffix   _

Is there something I am missing?

Derrick

#1

BoldMinded (Brian)

Try it withouth the ../ in the path. Make it a full absolute path.

#2

Derrick Grigg

tried this $env_config[‘snippet_file_basepath’] = ‘/wwwroot/215mccann/snippets/’;

and this

$env_config[‘snippet_file_basepath’] = ‘/wwwroot/215mccann/snippets’;

no luck. Does it matter that ‘wwwroot’ is a symlink ?

#3

BoldMinded (Brian)

Maybe, I haven’t tested with symlinks. Can you try it without, or in a different environment?

#4

Derrick Grigg

Ok, it’s working now. One thing that was not working, not sure if it’s supposed to. I had snippets created in EE and they didn’t seem to sync out to files, however anything in the snippets folder was syncing in. That worked with both the symlink and full system path.

Is the correct workflow, create a snippet file and then hit the snippets panel in EE to have them sync in only?

Derrick

#5

BoldMinded (Brian)

Yes, it doesn’t sync from the CP to the file system, just file system to CP

Login to reply