当前位置:网站首页>Host your own website with Vercel
Host your own website with Vercel
2022-08-02 04:36:00 【GentleTK】
Whether you want to have a blog of your own, or you want to publish your own small project to the outside world for everyone to access, Vercel is definitely an affordable option.
Note, make sure you have Git
and Node.js
installed before using Vercel.
1 Sign up and install
First go to Vercel official website to register an account, now registering new users must use GitHub
, GitLab
or BitBucket
account to authorize and bind the mobile phone number. After registration, you can modify your email address on the configuration page.
# Install Vercelnpm i -g vercel# Log in to Vercel, vc is the abbreviation of Vercel, you can also use Vercel insteadvc login YourEmailAddress
Vercel
will send an email to your mailbox, after confirmation, you can log in:
2 Publish your website/project
# Post site/projectvc --prod
The project configuration is basically all the way to enter. My project here is a small game of synthesizing a big watermelon:
After publishing, you will get two URLs, just open one and you can enter the game, but this URL does not look particularly elegant. If you have a domain name, you may wish to set it up with me.
Synthetic large watermelon URL 1
Synthetic large watermelon URL 2
3 Bind your domain name
If you have a domain name, you can bind it to Vercel
:
# Bind your own domain namevc domains add YourDomains
After running the command, you may be prompted to enter a project name (my project name is daxigua
):
According to the prompt information, Vercel
let us change the server address of DNS resolution and send an email to us. According to the email prompt, there are two ways to achieve the goal:
# Method 1@ A 76.76.21.21# Method 2ns1.vercel-dns.comns2.vercel-dns.com
I directly choose the first one here, first enter the console where the domain name is purchased, then find the DNS resolution service, and add a record set:
After the configuration is complete, you will receive an email prompting you to use the vc --prod
command on the terminal to publish it again:
I found that I can access Synthetic Big Watermelon through my own domain name.
Article author:GentleTK
Original link:
边栏推荐
猜你喜欢
Arduino lights up nixie tubes
ArrayList LinkList效率对比
[Arduino connected to GP2Y1014AU0F dust sensor]
【TCS3200 颜色传感器与 Arduino 实现颜色识别】
Industry where edge gateway strong?
GM7150 CVBS转BT656视频解码芯片详细内容及设计要求
Temporal action localization in untrimmed videos via Multi-stage CNNs SCNN论文阅读笔记
《scala 编程(第3版)》学习笔记3
倍福ET2000侦听器使用
【MQ-2 可燃气体和烟雾传感器与 Arduino 配合使用】
随机推荐
Comparative analysis of mobile cloud IoT pre-research and Alibaba Cloud development
PAT甲级:1020 Tree Traversals
Two-Stream Convolutional Networks for Action Recognition in Videos双流网络论文精读
openmv学习 2022.5.9
[Arduino connected to GPS module (NEO-6M) to read positioning data]
AD8307对数检波器
蓝桥杯:国二选手经验贴 附蓝桥杯历年真题
【树莓派入门(2)树莓派的远程控制】
SyntaxError: unexpected character after line continuation character
GM8775C MIPI转LVDS调试资料分享
网站开发方案研究
Scala,Spark依赖jar包冲突解决方法
Temporal Segment Networks:Towards Good Practices for Deep TSN论文精读笔记
[Spark]-协同过滤
龙讯LT6911系列C/UXC/UXB/GXC/GXB芯片功能区别阐述
机器学习相关 概率论重点笔记
【科普贴】I2C接口详解——偏硬件解析
【Arduino使用旋转编码器模块】
【Arduino连接GPS 模块 (NEO-6M)读取定位数据】
Typora use