How to Upload a Hugo Site to Hostinger

Step 1. Create a website using Hugo.

Step 2. In your terminal enter Hugo build in the directory where your Hugo site is located. The finished site will be located in the “public” directory

Step 3. copy that directory somewhere else and compress it into a .zip file

Step 4. Go to Hostinger H Panel and click “websites” on the menu on the left

Hostinger Hpanel website selection

Step 5. Click “Migrate Website”

Step 6. Select “Upload Backup Files” and click next.

Step 7. Enter your domain name that you’d like to use or use a temporary domain

Step 8. Upload the .zip file you created in step 3.

That should be it, you will then point your domain to the website using dns or the provided IP address. You can manage your websites files by going to the websites dashboard and then clicking on file manager.