Hardware: VPS bought online ( Contabo ) YunoHost version: 11.1.0.2 (stable) I have access to my server : Through SSH and browser Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
hi!
im trying to add a static website made with hugo on my server through the custom web app by copying the hugo directory into the directory the app tells me to, but i encounter an error:
i copied the directory in a temp directory and then moved it to /var/www/my_webapp/www with mv (using root) as the app says to do, but when i refreshed the page it still loads on the my_webapp page.
what im trying to do specifically is to put up my hugo website and, as i think it is being suggested in this thread, the only thing i need to do is to create the website and then upload it in the my_webapp directory.
are you saying that, actually, SFTP is the only way to transfer data and make it work?
No, you can drop files in there. I use this app, too. i donât use scp. i copy files from nextcloud to this folder and change owners.
what is the ownership of the files?
www-data should be the group. Here is my example:
I did this after moving my files: chown -R bob:www-data /var/www/my_webapp/
Then my /var/www/my_webapp/ looks like this
root@server:/var/www/my_webapp/www# ls -la
total 1576
drwxr-x--- 16 bob www-data 4096 Sep 20 15:01 .
drwxr-x---+ 3 bob www-data 4096 Jan 14 2022 ..
-rw-r----- 1 bob www-data 7546 Jan 1 22:58 404.html
drwxr-x--- 2 bob www-data 4096 Jul 12 22:55 about-arkadi-cloud
drwxr-x--- 2 bob www-data 4096 Jul 12 22:55 about-hugo
drwxr-x--- 2 bob www-data 4096 Jul 12 22:55 about-us
drwxr-x--- 2 bob www-data 4096 Jul 12 22:55 archives
anyway, i did what you said with chown, but it is still not working.
just to show you:
root@me:/var/www/my_webapp/www# ls -la
total 16
drwxr-xr-x 3 me www-data 4096 Jan 8 20:52 .
drwxr-x---+ 3 me www-data 4096 Dec 31 03:18 ..
-rw-r----- 1 me www-data 1094 Dec 31 03:18 index.html
drwxr-xr-x 11 me www-data 4096 Jan 9 00:42 quickstart
quickstart is the the basic website you build by following the getting started guide from hugo.
Also, in your Hugo conf file (I am using a config.toml file), can you check that you specify the:
baseURL = âhttps://xxxx/â at the begining. It should be the adress of your website (not of Yunohost).