Unable to get Hugo website after deploy on OVH but running on Github pages

Hello
My Website is okay in local and GithubPage: Kulinda Security
But after deploy on OVH i don’t saw the homePage but Index Of. I have no deployment errors and everything seems to be going well.
I am new to Hugo and I have no idea what I can do more, any help would be much appreciated!
my repository is:
Kulinda Security

  • what is OVH
  • where is OVH
  • where is your website on OVH
  • what are the build and deploy logs
  • what is the content of “Index Of”

“Index Of” sounds like an automated index based on Apache (or whatever) webserver configuration and that implies that the webserver you used does not know that it should use index.html to display index pages for “clean” links.

Or, look at the “Index Of” and if you don’t see an index.html there then you probably don’t have a proper deploy and you missed something in the logs.

Or, maybe it’s an Apache webserver and you have a custom .htaccess that switches things around. Or your webserver is configured to show index.htm or index.php instead of index.html as index pages.

As a cyber security company, you should be able to provide us with more logs and insight into the setup.

Also:

Thanks for your replies @davidsneighbour OVH, is a French company. practiced server hosting, and was an Internet service provider (ISP) and cloud computing. I reserved a domain name kulinda-sec.com and deployed my Hugo site via Github. the site is online but the deployment did not go well: https://kulinda-sec.com
and indeed it doesn’t have an index.html file. shouldn’t this file be generated with the Hugo deployment or do I have to create it manually?

The beginning of log of deployment
"2024-11-14T20:12:09.872Z Error: fatal: not a git repository (or any parent up to mount point /home)
2024-11-14T20:12:09.872Z Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
2024-11-14T20:12:12.94Z GIT DEPLOY : Cloning into ‘www’…
2024-11-14T20:12:12.94Z remote: Enumerating objects: 739, done.
2024-11-14T20:12:12.94Z remote: Counting objects: 0% (1/739)
2024-11-14T20:12:12.94Z remote: Counting objects: 1% (8/739)
2024-11-14T20:12:12.94Z remote: Counting objects: 2% (15/739)

and the end
2024-11-14T20:12:12.951Z Checking out files: 97% (726/748)
2024-11-14T20:12:12.951Z Checking out files: 98% (734/748)
2024-11-14T20:12:12.951Z Checking out files: 99% (741/748)
2024-11-14T20:12:12.951Z Checking out files: 100% (748/748)
2024-11-14T20:12:12.951Z Checking out files: 100% (748/748), done.

Running hugo on your project will create an index.html file. If you want a quick “solution” do whatever you do before uploading your site to GitHub Pages and then rsync the resulting public folder to your hoster. Everything inside of that folder is the content of your websites root directory.

You will need to:

  1. Delete all the files on the web server that you have already uploaded.
  2. Run the hugo command to build the site on your own computer.
  3. Upload the content of the public dir to the web server.

On GitHub pages you must have been using an action that build the site on each new deploy. This is how I deploy most of the sites I build.

A basic web server just serves html pages so then you must create the site locally and upload the resulting files.

When I host sites this way I use a oneliner script, see below. The script use rsync and ssh to only upload changed files.

#!/usr/bin/env sh

hugo --cleanDestinationDir && rsync -e 'ssh -ax' --archive --delete --verbose --compress --human-readable --exclude '.DS_Store' public/ your.host.org:/var/www/html/

Thank you very much for your responsiveness. Indeed it is the simplest method. I did it and everything is OK

Thank you very much for your responsiveness @frjo. This command will allow you to push the modifications more quickly
thankfulness

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.