Hi, @YousefAbood. We would be happy to troubleshoot and explain more about why this is happening. Would you please send us a link to the non-working site?
@flityzz, your site doesn’t have any HTML files in the deploy directory. For example, there is the following javascript file:
i’m building a static version. I’m using webpack for it, dont know why my dist folder doesnt have the index.html file, i will let to you my build script in package.json to see if im doing wrong
If it isn’t working for you, would you please send us the x-nf-request-id header for the response that doesn’t work for you (that header or the information is replaces)? For example, the value for my request above is 3440924b-ca2e-42bc-81ec-cf3401bc6eb0-1557898.
@YousefAbood, thank you for the follow-up to let us know it is working now.
@flityzz, the repo is public for that site and I can see the build creates three files, none of which is an HTML file. Are you trying to run a server at Netlify? If so, that does work and there is more information about why here:
If you are trying to run a server, you might be able to use Functions for this purpose. That depends one what the purpose of the javascript file is (and I don’t know what that purpose is). Can you tell us more about that?
If you are not trying to run a server, where are the HTML files for this site? Again, as above, what is the purpose of the build.js file? How does it tie in with other files to make a website?
sorry @luke i don’t understood exacly what you are asking :d, i’m a beginner but i found the exacly the same issue in the stack overflow that describes very well my doubt Stack Overflow Question I did what the answer said but doenst worked.
Hi, @flityzz. I don’t know the answer either to be honest. Our support team has a limited scope of support for the assistance that we provide. I mention this because while our support team cannot troubleshoot the site code itself (which is third-party code), someone else here on the community site might. Our support team can troubleshoot Netlify specific issues but not third-party code issues. We could troubleshoot if the issue was caused by Netlify but that isn’t the case here.
Again, I want to be clear that your question is welcome even if our support team won’t be able to answer it. The answer in that Stack Overflow post appears to be written by the illustrious @talves so maybe he will have input into your example as well.
The site itself no longer exists I see. I believe the repository for this site is public isn’t it @flityzz? If so, you might also post the repo URL here for others to look at.
@flityzz you should start with: vue create hello-world
This will show you how a vue project gets scaffold to include all your assets into a dist folder on build. You should be able to pick most of the default options to get a clean project.
As @talves said, I should have started my project with ‘vue create [project]’, instead I created it with ‘vue webpack-simple’. The Vue webpack-simple template does not create a finished build folder. It assumes you will be hosting your site from the root of the project. so thanks anyways for the replies
UPDATE: actually, your stack overflow answer worked! thanks, i was forgetting to commit the netlify.toml file to the repository, so i added the file and it worked! thanks @luke and @talves
Hi everyone,
I need help because Netlify says Site is live but cannot find it. I have read your suggestions above and downloaded a copy of the deploy but cannot read anything from there (because I am not familiar with this process) can you help me to find the website please?
@mathieujulien99 OK, after your download a copy of your deploy, you will find a file called something like deploy-5f6fafe4f8986e0008994f3d.zip.
You unZIP this file (AKA unarchive), which typically can be done by double-clicking it. This will result in a new folder in the same directory as the ZIP file with the same name as the ZIP file, but without the .zip file extension.
Open the new folder.
Inside, you should see your site files. If you see only another folder, or a bunch of files without one named index.html, that’s your problem. You MUST have an index.html file at the top level of your site for your site to load when people visit your domain URL.
If your main index.html file is inside a folder, you need to figure out how to build / deploy your site so that your site files, including especially your main index.html file, are at the top level, not hidden inside a folder.
If you see only a folder inside your site folder, you should be able to see your site by going to https://www.islandtribeschallenges.com/foldername/.
Hi Greg, thank you for your help and patience.
I have followed your instructions carefully.
But I don’t receive the index.html among the other folders when download the zip file,
and this even when I do other deploy trials with other templates.
mathieujulien99 Then you know what you need to fix. Somehow, you need your build process to generate an index.html file at the top level of your website.