This is the frontend source code of my blog https://zhuwenlong.com aka https://himofei.com
code/s.example.yaml
文件复制为code/s.yaml
code/s.yaml
的敏感信息,如将 environmentVariables
中的 xxxx
修改为真实参数:environmentVariables:
MysqlHost: xxxx #Mysql 数据库地址
MysqlUser: xxxx # MySQL 数据库用户名
MysqlDB: xxxx # MySQL 数据库DB名称
MysqlPwd: xxxx # MySQL 数据库密码
EmailUser: xxxx # 邮件系统用户名(用来发送留言回复等email)
EmailPwd: xxxx # 邮件系统密码
cd code
npm install
s deploy
Run the commend below, and open a browser to make sure the site works.
If you don't have the s
(i.e. serverless devs tool), follow this doc to install it.
s local start --custom-domain auto