当前位置:网站首页>Quickly build a website with static files
Quickly build a website with static files
2022-08-04 01:03:00 【A-L-Kun】
Article table of contents
Deploy static files
I. Initialization
1. Create a file
First of all, we need to create our file, which can be written with a little content.Then the static files we wrote are added to the GitHub remote repository using git for us to deploy, here IIt is a simple post-management page built using the bootstrap framework, and also sets up the login interface and a help document
2. Upload file
We create a warehouse WebTest on GitHub to store our code, and the creation of the warehouse is also in articleMedium
After the repository is created, we start uploading our files. After the upload is complete, as shown below:

Then we start deploying our website
Second, GitHub
1. Basic deployment
First, let's talk about using GitHub to deploy a website

Then we can access our deployed projects through https://liuzhongkun1.github.io/WebTest/
The project address is: https://github.com/liuzhongkun1/WebTest
Principle:
We visit: https://liuzhongkun1.github.io/WebTest/ This address is equivalent to visiting https://liuzhongkun1.github.io/WebTest/index.htmlThe default access address of GitHub is index.htmlSo what should I do if I want to access help.html?Similar to the above visit, except that we need to enter the html file path:https://liuzhongkun1.github.io/WebTest/help.htmlSpecial Features:
Create a project named xxx.github.io (xxx is your username), and then deploy in the above way to get xxx.github.io .
For example, if my Github username is
liuzhongkun1, create a repository namedliuzhongkun1.github.ioand deploy it there.
2, framework deployment
Then the question is, how should we deploy Vue, react and other frameworks?
It's also very simple. These frameworks are essentially web files. We need to compile locally, package and create them, and then upload the files in the build directory to the prepared ones through git.In warehouse
The rest of the steps are similar to the above
Third, netlify
Then we will learn how to use netlify to deploy our static website
First we need to log in to this website with GitHub account, click import from Git

Click steps:
import from Git -> GitHub -> Authorize ->After authorization, select the warehouse where we need to deploy the website

Then we can configure our file

Skip the warning, because we are using static files and don't need to compile and then run the deployment, we can see

Let's take a look at the log information during the deployment process

So, can we change our site name?The answer is yes

Our site name changed from https://bucolic-figolla-b8ffb4.netlify.app/https://lzk.netlify.app/
At the same time, we can also bind the domain name we purchased to this:


However, since I don't have a domain name for the time being, I won't continue writing. You can read the official documentation to bind your own domain name.
边栏推荐
- boot issue
- 【虚拟化生态平台】虚拟化平台搭建
- .NET静态代码织入——肉夹馍(Rougamo) 发布1.1.0
- jmeter跨平台运行csv等文件
- Observability:你所需要知道的关于 Syslog 的一些知识
- NLP resources that must be used for projects [Classified Edition]
- C 学生管理系统_添加学生
- 2022 中国算力大会发布“创新先锋”优秀成果
- typescript55-泛型约束
- 114. How to find the cause of Fiori Launchpad routing error by single-step debugging
猜你喜欢

【OpenCV】-重映射

typescript56 - generic interface

Observability:你所需要知道的关于 Syslog 的一些知识

快速入门EasyX图形编程

Vant3 - click on the corresponding name name to jump to the next page corresponding to the location of the name of the TAB bar

pygame 中的transform模块

114. How to find the cause of Fiori Launchpad routing error by single-step debugging

nodejs+express实现数据库mysql的访问,并展示数据到页面上

Analysis of usage scenarios of mutex, read-write lock, spin lock, and atomic operation instructions xaddl and cmpxchg

动态内存二
随机推荐
Analysis: What makes the Nomad Bridge hack unique
手撕Gateway源码,今日撕工作流程、负载均衡源码
敏捷交付的工程效能治理
redis中常见的问题(缓存穿透,缓存雪崩,缓存击穿,redis淘汰策略)
FeatureNotFound( bs4.FeatureNotFound: Couldn‘t find a tree builder with the features you requested:
jmeter分布式压测
【性能优化】MySQL性能优化之存储引擎调优
网络带宽监控,带宽监控工具哪个好
因为一次bug的教训,我决定手撕Nacos源码(先撕客户端源码)
How to find the cause of Fiori Launchpad routing errors by single-step debugging
Spinnaker调用Jenkins API 返回403错误
一文参透分布式存储系统Ceph的架构设计、集群搭建(手把手)
七夕佳节即将来到,VR全景云游为你神助攻
一个项目的整体测试流程有哪几个阶段?测试方法有哪些?
nodeJs--async/await
【正则表达式】笔记
Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
ML18-自然语言处理
C 学生管理系统_添加学生
数据库扩容也可以如此丝滑,MySQL千亿级数据生产环境扩容实战