mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-14 11:18:02 +00:00
1 line
3.3 KiB
JavaScript
1 line
3.3 KiB
JavaScript
"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[782],{8025:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>r,contentTitle:()=>l,default:()=>p,frontMatter:()=>s,metadata:()=>i,toc:()=>c});const i=JSON.parse('{"id":"deploy/agent","title":"Client Deployment","description":"- Operating System: Ubuntu 20.04 LTS","source":"@site/i18n/en/docusaurus-plugin-content-docs/current/deploy/agent.md","sourceDirName":"deploy","slug":"/deploy/agent","permalink":"/docs/docs/deploy/agent","draft":false,"unlisted":false,"editUrl":"https://github.com/bytedesk/bytedesk/docs/deploy/agent.md","tags":[],"version":"current","sidebarPosition":3,"frontMatter":{"sidebar_label":"Client","sidebar_position":3},"sidebar":"tutorialSidebar","previous":{"title":"Admin Dashboard","permalink":"/docs/docs/deploy/admin"},"next":{"title":"Desktop Client","permalink":"/docs/docs/deploy/desktop"}}');var o=t(5723),d=t(6246);const s={sidebar_label:"Client",sidebar_position:3},l="Client Deployment",r={},c=[{value:"Dependencies",id:"dependencies",level:2},{value:"Download",id:"download",level:2},{value:"Configuration",id:"configuration",level:2},{value:"Deploy",id:"deploy",level:2}];function a(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",pre:"pre",ul:"ul",...(0,d.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"client-deployment",children:"Client Deployment"})}),"\n",(0,o.jsx)(n.admonition,{type:"tip",children:(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsx)(n.li,{children:"Operating System: Ubuntu 20.04 LTS"}),"\n",(0,o.jsx)(n.li,{children:"Server Requirements: Minimum 2 cores 4GB RAM, Recommended 4 cores 8GB RAM"}),"\n"]})}),"\n",(0,o.jsx)(n.h2,{id:"dependencies",children:"Dependencies"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsx)(n.li,{children:(0,o.jsx)(n.a,{href:"/docs/deploy/depend/nginx",children:"Nginx"})}),"\n",(0,o.jsx)(n.li,{children:(0,o.jsx)(n.a,{href:"/docs/deploy/depend/letsencrypt",children:"Let's Encrypt"})}),"\n"]}),"\n",(0,o.jsx)(n.h2,{id:"download",children:"Download"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",children:"# Download source code\ngit clone https://github.com/bytedesk/bytedesk-agent.git\ncd bytedesk-agent\n# Install dependencies\nyarn install\n# Start development\nyarn dev\n# Build for production\nyarn build\n"})}),"\n",(0,o.jsx)(n.h2,{id:"configuration",children:"Configuration"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",children:"# Modify configuration files\nvim .env.production\n# Modify API URL\nVITE_API_URL=https://api.example.com\n"})}),"\n",(0,o.jsx)(n.h2,{id:"deploy",children:"Deploy"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",children:"# Copy dist directory to nginx html directory\ncp -r dist/* /var/www/html/weiyuai/agent/\n"})})]})}function p(e={}){const{wrapper:n}={...(0,d.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(a,{...e})}):a(e)}},6246:(e,n,t)=>{t.d(n,{R:()=>s,x:()=>l});var i=t(2155);const o={},d=i.createContext(o);function s(e){const n=i.useContext(d);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),i.createElement(d.Provider,{value:n},e.children)}}}]); |