iakta / hugocockpit

a Hugo addon for Cockpit-Next CMS, generating Hugo compatible content and running Hugo for you
56 stars 5 forks source link

Problem to access the Finder #4

Closed bugsysop closed 6 years ago

bugsysop commented 6 years ago

Testing Cockpit wit Hugocockpit... Nice piece of CMS. I have only one problem :

Hugo's user account (author) can't access to storage/hugodirectory with the Cockpit's Finder... and can't upload or insert images.

In my config file for Hugo I have (has said in readme): cockpit_storage_prefix: /storage/hugo. Maybe I miss something...

I use Hugocockpit v0.3.6 and latest Cockpit Next package from official Site... I'm on local dev environnement with MacOS 10.12, PHP7.0.15 and Apache 2.2.31

bugsysop commented 6 years ago

Solved ! As my Cockpit in installed in a subfolder (localhost/cockpit/), the finder.path variable in the Cockpit config file must explicitely include the name of this directory like this:

finder.path: cockpit/storage/hugo/media

Now all work fine...