resume-deployment

傅阿苏
2023-12-01

Resume deployment

Introduction

为整理CV 及更完整直观呈现公开信息之故,耗时3日达30小时构建简历公布于网络。

Process

R_ blogdown + Win_hugo + github + netlify == open CV

Environment

# development version of blogdown
remotes::install_github('rstudio/blogdown',force = TRUE)
# download hugo ( Win OS )
blogdown::hugo_version() # 0.57.2
# github directory _ vscode push

Local site

# build site 
blogdown::new_site(theme = "gcushen/hugo-academic")
# show
serve_site() 
# change content and config files on vscode
# use mainly markdown language

# update the URL of my config.toml file from \ to my target web name https*.com\

# created a netlify.toml at the root directory. 
# netlify.toml 
[build]
  publish = "public"
  command = "hugo"
[context.production.environment]
  HUGO_VERSION = "0.57.2"
  HUGO_ENV = "production"
  HUGO_ENABLEGITINFO = "true"
[context.branch-deploy.environment]
  HUGO_VERSION = "0.57.2"
  • Error

    failed during stage 'building site': Build script returned non-zero exit code: 255
    

The reason was found on the version not matching.

【已解决】Hugo 版本比较高(我的是0.36),Netlify 部署时,因为高于 0.2,所以需要增加变量(HUGO_VERSION,0.36)。

Thus advanced information should be filled:

HUGO_VERSION 0.57.2

获得成果:

https://*.netlify.com

Discussion

需要仔细思考最紧要的任务是什么

需要思考最重要的问题所在,然后集中精力去功课它,多寻求帮助,不要一股脑子死撞,此为不智。

Conclusion

学会选择!
当勤思!

 类似资料: