YunoHost-Apps / my_webapp_ynh

Custom Web app with SFTP access
GNU General Public License v3.0
47 stars 39 forks source link

uploading hugo static website doesn't work #100

Open lucyferu opened 1 year ago

lucyferu commented 1 year ago

Describe the bug

static website created with Hugo doesn't come up at the domain after directory is transferred in my_webapp.

Context

Steps to reproduce

-lastly, i've also just tried these instructions and they didn't work neither.

Expected behavior

i would expect to see my static website.

Logs

don't know how to retrieve logs in this case. the only ones i have are the ones from filezilla

alexAubin commented 1 year ago

static website created with Hugo doesn't come up at the domain after directory is transferred in my_webapp.

What happens then ... if it "doesn't come up", then what comes up ?

lucyferu commented 1 year ago

static website created with Hugo doesn't come up at the domain after directory is transferred in my_webapp.

What happens then ... if it "doesn't come up", then what comes up ?

the default my_webapp page with instructions and cats gif.

alexAubin commented 1 year ago

Then I guess the index.html is still there and was not replaced ... does your hugo generates an index.html ? Did you try removing the default index.html ?

lucyferu commented 1 year ago

Did you try removing the default index.html ?

just tried and i receive this error where try to load the page now:


403 Forbidden
nginx
stilobique commented 10 months ago

Hello, I make a website with pelican, and I have this issue. However, I have uninstalled this app, and reinstalled-it, and it's solved ; I don't understand.

tituspijean commented 10 months ago

What's the output of ls -la /var/www/my_webapp/www ? Error 403 would indicate that the files cannot be read by NGINX as www-data.

stilobique commented 10 months ago

I have re-installed this app and now it's work. Unfortunately, I can't reproduce this issue.