09 2021 档案
摘要:node 打包内存溢出 FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory FATAL ERROR: Ineffective mark-com
阅读全文
摘要:const app = express() app.get('/', function(req, res) { res.redirect('/air/origin/master/#/light/index/content?id=0') })
阅读全文
摘要:使用call调用yarn安装包,防止批处理退出 使用set设置环境变量,代替cross-env branch是变量 call yarn echo install done set MODE_ENV=jenkins set BUILD_PATH=/temp/air/%branch% set PUBLI
阅读全文
摘要:branchTemp是变量 xcopy D:\\Jenkins\\workspace\\air D:\\temp\\air\\%branchTemp%\\ /Y /E
阅读全文
摘要:set aa=hello,world! echo before:%aa% echo after:%aa:world=china% echo aa=%aa% echo %aa% set aa=%aa:world=china% echo aa=%aa%
阅读全文
摘要:jenkins.mis安装后 关闭: services.msc 启动:
阅读全文
摘要:
阅读全文
摘要:1.构建项目时可以选择分支 2.构建中途可以设置docker容器对外暴露的端口号 Jenkinsfile: pipeline { agent any environment { CI = 'true' } stages { stage('install') { input { message "Pl
阅读全文
摘要:Jenkins stderr: fatal: couldn't find remote ref refs/heads/${BRANCH}
阅读全文
摘要:安装插件: 配置: ssh协议: 参考: https://plugins.jenkins.io/git-parameter/
阅读全文
摘要:JenkinsFile: pipeline { agent { docker { image 'node:12' args '-p 81:81' } } environment { CI = 'true' } stages { stage('install') { steps { sh 'yarn'
阅读全文
摘要:在docker里运行jenkins: docker run ^ --rm ^ -u root ^ -p 8080:8080 ^ -v jenkins-data:/var/jenkins_home ^ -v /var/run/docker.sock:/var/run/docker.sock ^ -v
阅读全文
摘要:docker 和 docker pipeline都需要安装
阅读全文
摘要:git config --global --unset http.proxy
阅读全文
摘要:在当前目录下"shift+鼠标右键"
阅读全文
摘要:把本地文件夹挂载到docker容器里,实现修改本地代码,可以实时在容器里运行 docker run -dp 3000:3000 ` -w /app -v "$(pwd):/app" ` node:12-alpine ` sh -c "yarn install && yarn run dev" 参考链
阅读全文
摘要:volume在docker中的意思表示将宿主机上的目录挂在到docker容器中,这样可以保持数据持久化,当将容器删除时,数据不会丢失 创建volume: docker volume create todo-db 使用volume: docker run -dp 3000:3000 -v todo-d
阅读全文
摘要:查看、保存、导入: //查看 docker images //保存 docker save xutongbao/m-node-edu > xu.tar //导入 docker load < xu.tar xu.tar文件就保存在命令行执行的当前目录下:
阅读全文
摘要:Dockerfile: FROM node:12 # Create app directory WORKDIR /usr/src/app # Install app dependencies # A wildcard is used to ensure both package.json AND p
阅读全文
摘要:更新apt-get: apt-get update 安装vim: apt-get install vim 创建文件: touch a.js 编辑文件: vim a.js 点击i进入插入模式 输入: console.log('hello, world') 按esc退出编辑模式 :w 保存 :q 退出编
阅读全文
摘要:win10使用WSL 2运行Docker Desktop,运行文件从C盘迁移到其他目录 - xhznl - 博客园 Windows PowerShell 版权所有 (C) Microsoft Corporation。保留所有权利。 尝试新的跨平台 PowerShell https://aka.ms/
阅读全文
摘要:安装: yarn global add localtunnel 启动本地项目: 使用本地隧道: lt --port 81 效果: 手机端: 安全警告: 关闭本地隧道后:
阅读全文
摘要:官网: https://sqlitestudio.pl/ 界面:
阅读全文
摘要:官网: CodeSandbox: Online Code Editor and IDE for Rapid Web Development github pages页面: SalesWork https://codesandbox.io/embed/github/xutongbao/m-node-e
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content
阅读全文
摘要:<Form.Item label="擅长主攻方向" extra={<div className="m-input-footer-msg">666</div>} name="majorScope" rules={[ { required: true, message: '请输入擅长主攻方向!', },
阅读全文
摘要:https://vuepress-theme-reco.recoluan.com/views/1.x/valine.html 配置: module.exports = { theme: 'reco', themeConfig: { valineConfig: { appId: '...',// yo
阅读全文
摘要:const mdFileNameArr = [1, 2, 3, 2] mdFileNameArr.forEach(item => { if (mdFileNameArr.indexOf(item) !== mdFileNameArr.lastIndexOf(item)) { console.log(
阅读全文
摘要:博客园支持备份功能: 操作时间是: 工作日18:00之后、8点之前或周六、周日进行备份。 点击备份,可以选择时间段,导出以后,是xml格式,样例格式如下: <?xml version="1.0" encoding="utf-8" standalone="yes"?> <rss version="2.
阅读全文
摘要:{{ this will not be compiled }} 参考链接: https://vuejs.org/v2/api/#v-pre
阅读全文
摘要:let htmlStr = fs.readFileSync(__dirname + '/data.xml', 'utf8') htmlStr = htmlStr .replace(/</g, '') .replace(/"/g...
阅读全文
摘要:安装: # 安装 pagicdeno install --unstable --allow-read --allow-write --allow-net --allow-run --name=pagic https://deno.land/x/pagic/mo...
阅读全文
摘要:可以通过下面的指令查询: deno info
阅读全文
摘要:网站: https://star-history.t9t.io https://star-history.t9t.io/#denoland/deno deno: react: vue:
阅读全文
摘要:launch.js: const run = () => { return Deno.run({ cmd: ['deno', 'run', '--allow-net', '--allow-read', 'index.js'], cwd: 'ap...
阅读全文
摘要:以管理员身份运行windows PowerShell 命令行里输入: Set-ExecutionPolicy RemoteSigned 如果没有安装 choco,先安装 choco chocolatey是windows下的一个命令行的包管理工具,类似ubun...
阅读全文