简体   繁体   English

尝试在 Netlify 上部署站点,链接无效

[英]Trying to deploy site on Netlify, link is not working

I was trying to manually deploy an html file on Netlify.我试图在 Netlify 上手动部署一个 html 文件。 Although it uploads successfully, the link created is always broken.虽然它上传成功,但创建的链接总是断开。 What should i do?我应该怎么办?

I tried to upload the folder multiple times to no avail.我尝试多次上传该文件夹无济于事。 I expected the site to run the simple HTML site i had to write for an Intro to Programming class.我希望该站点运行我必须为编程介绍 class 编写的简单 HTML 站点。

You may have already tried this but Netlify needs an index.html file to display as the root page if you are manually uploading HTML files.你可能已经尝试过了,但是如果你手动上传 HTML 文件,Netlify 需要一个index.html文件来显示为根页面。

If your document has a different name (eg, mypage.html ), try naming it as index.html and reuploading it on https://app.netlify.com/drop .如果您的文档有不同的名称(例如, mypage.html ),请尝试将其命名为index.html并重新上传到https://app.netlify.com/drop

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 python,pelican,GitHub,netlify,部署失败 - python, pelican, GitHub, netlify, failed deploy 如何在 python Flask 中部署网站到 netlify - how to deploy website in python Flask to netlify 当我将Django应用程序部署到heroku时,站点停止工作 - When i deploy my django app to heroku the site stops working 尝试使用 BeautifulSoup 获取链接,但它不起作用? - Trying to get link using BeautifulSoup, but it's not working? 为什么 Serverless 在尝试打包或部署时会产生 Invalid Cross-device link 错误? - Why does Serverless produce an Invalid Cross-device link Error when trying to package or deploy? 试图从流媒体网站下载视频,无法获取我需要的链接 - trying to download a video from a streaming site, can't get the link i need 我正在尝试将Heroku链接到我们的Django网站,并且需要帮助来理解此错误日志 - I'm trying to link Heroku to our Django site and need help understanding this error log 用文字链接网站 - Link the site with text 尝试抓取网站中的所有新闻链接(解析后的链接每页仅显示 10 个结果,我需要找到所有链接) - Trying to crawl all newslinks in a site (the parsed link only shows 10 results per page, I would need to find ALL links) 尝试部署模型时失败 - Failure when trying to deploy a model
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM