09 2021 档案

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

点击右上角即可分享
微信分享提示