创建 Vite + React 项目

npm create vite@latest my-portfolio -- --template react
cd my-portfolio

安装依赖

npm install
npm install plyr
npm install framer-motion react-intersection-observer

安装 TailwindCSS + 依赖\

npm install -D tailwindcss@3.4.17 postcss autoprefixer
npx tailwindcss init -p

此处需要注意

npm ERR! could not determine executable to run 
npm ERR! A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache_logs\2025-05-24T07_09_25_220Z-debug-0.log 

如出现上面的报错,这是由于执行 npm install -D tailwindcss postcss autoprefixer 命令后自动下载的是4.1.7版本,而官网的版本最高是3.4.17。

改为:npm install -D tailwindcss@3.4.17 postcss autoprefixer 即可。

构建项目

npm run build

输入构建命令后同时自动执行命令:

在项目目录的 package.json 找到 "scripts" 部分

{
  "scripts": {
    "build": "vite build",
    "postbuild": "rm -rf /var/www/tool/demo/* && cp -r dist/* /var/www/tool/demo/"
  }
}

执行 npm run build 后,会自动删除旧文件并复制新构建内容。

1. AE CEP

AE CEP(Adobe Common Extensibility Platform)是 Adobe 提供的一种跨产品插件开发平台,允许开发者使用 Web 技术(HTML、CSS、JavaScript)开发跨 Adobe 应用的扩展插件。CEP 插件支持 After Effects、Premiere Pro、Illustrator 等 Adobe 应用,并通过 ExtendScript 或 Adobe 的 API 与这些应用程序进行交互。

- 阅读剩余部分 -

注:以下教程参考了B站@Nenly同学的安装攻略,并简化完善了一些步骤。

1.Stable Diffusion WebUI 简介

Stable Diffusion WebUI 是由一位越南开发者 Automatic1111 基于 Stable Diffusion 制作的可视化参数调节与对海量扩展应用支持的界面系统,可以很方便的使用和管理 Stable Diffusion。

Stable Diffusion WebUI GitHub 仓库:

https://github.com/AUTOMATIC1111/stable-diffusion-webui

- 阅读剩余部分 -

2024年03月15日更新:阿里云受《关于Digicert EE SSL证书管理服务的费用调整通知》的影响,免费提供1年的SSL证书将变为3个月,原1年版的免费证书需要收取68元/张/年,详情:阿里云公告

前几年博客使用的是 Let’s Encrypt 免费证书,优点是申请和部署比较方便,并支持通配域名,不足的是每三个月需要重新申请并部署。最近发现阿里云也提供了免费的SSL证书,好处是该证书有效期是一年,虽然不支持通配,但可以申请20个二级域名,对于一般用户来说也足够使用。 研究了一下将申请和部署方式记录下来,防止一年后忘记。

- 阅读剩余部分 -