sjardim / Hugopit

An EXPERIMENTAL web based editor for Hugo
81 stars 15 forks source link

How do I get cockpit to run? #3

Open tyeeman opened 8 years ago

tyeeman commented 8 years ago

I left this post on your youtube page also.

This looks great. I downloaded it and ran Hugo server like you said and I get the Hugo+Cockpit page like in your video (localhost:1313). Problem is how do I run cockpit? Is Hugo server also supposed to serve Cockpit from localhost:1313?? If I run my other apache server to get just localhost, then run your index.php file, I get a page that wants to import to Cockpit the Hugo posts and pages etc. If I click on any of those links I get page not found or something to that effect. The links are something like 'localhost/posts', localhost/pages'.

I am running in www/hugopit folder, not root (www) folder. What am I doing wrong? Most likely a path problem, htaccess?? something in index.php??

halink0803 commented 8 years ago

I face the same problem. The documentation was so short and not enough information. I was so impressed by the video demo, but if I can't make it to work. It's useless :(

tyeeman commented 8 years ago

Here is the answer I got -

Hi, you should place the project where your apache web directory is for the php to be served. Then go to your project relative path/install/index.php. As soon the project gets initialized, you may access it via project url/auth/login Hope that helps.

I have not tried it yet.

halink0803 commented 8 years ago

I have done that, but it turned out to be the basics cockpit. Nothing customized for hugo :-1:

sjardim commented 8 years ago

Hi guys, sorry for the lack of documentation. But this was just an experimental project. I soon changed my idea of its real applicability after I discovered https://forestry.io/, a great online editor for Hugo.

halink0803 commented 8 years ago

@sjardim In case you don't know that your project was mentioned in hugo official documentation which brought me here :D. I tried forestry.io but it takes so long when publishing the site and the post or page. I think it would be great if I can install and control the editor by myself. Thank you for your answer anw 👍

sjardim commented 8 years ago

Hi @halink0803 , I didn't know that about Hugo docs! Thanks for the tip.

Regarding forestry.io, I didn't feel it took so long like you mentioned, but I just scratch its surface, never used it on a daily basis. :|

tyeeman commented 8 years ago

I asked Scott at forestry.io if he would release his version but I guess he won't. I personally don't use anything online because whoever hosts it could disappear instantly and then your out of luck. I want the code on my server which will never disappear.