iakta / hugocockpit

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

unable to set things up #9

Open zabatonni opened 6 years ago

zabatonni commented 6 years ago

image

I'm trying to install hugocockpit locally. But it always says its 'not Hugo Dir'. This project compiles ok, without warnings and there is config.toml file. Could you please guide me, what am i missing? I read setup guide but can't make it work.

Thanks in advance.

zontarian commented 6 years ago

Hello,

are you using an absolute path? if not, try to use an absolute one please. Also remember that the path must point to a location on the same machine (or server) where you have installed Cockpit+Hugocockpit. So the Hugo installation must reside on the same machine..

Let me know.

Bye

zabatonni commented 6 years ago

Hello, i tried both, absolute and relative. Paths are correct, isDir is checking for that. What exactly is Hugo installation? On windows it's just one hugo.exe binary file.

Where should exactly "hugo dir" be pointing? To hugo.exe or actual hugo project files?

zontarian commented 6 years ago

It should point to the folder containing your Hugo project. The one containing your config.toml, content and themes,archetypes and so on.

zabatonni commented 6 years ago

I have it exactly like that, but its not working. This Hugo project is working fine using "hugo server" command and also builds without any trouble.

kientv commented 5 years ago

I have the same problem: path: /var/www/html/hugo/mysite/ {"status":"ko","error":"config file not found"}

keatonlao commented 5 years ago

image

I'm trying to install hugocockpit locally. But it always says its 'not Hugo Dir'. This project compiles ok, without warnings and there is config.toml file. Could you please guide me, what am i missing? I read setup guide but can't make it work.

Thanks in advance.

My web server is Nginx , I found this problem is caused by directory permissions.

chown -R nginx:nginx /path/to/hugo-project