Files
weiyu/docs/assets/js/37c5fcf1.2cc51ab2.js
jack ning fffbecbf17 update
2025-01-03 07:52:00 +08:00

1 line
3.4 KiB
JavaScript

"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4623],{34:(e,n,d)=>{d.r(n),d.d(n,{assets:()=>l,contentTitle:()=>r,default:()=>p,frontMatter:()=>s,metadata:()=>i,toc:()=>a});const i=JSON.parse('{"id":"deploy/admin","title":"Admin Dashboard Deployment","description":"- Operating System: Ubuntu 20.04 LTS","source":"@site/i18n/en/docusaurus-plugin-content-docs/current/deploy/admin.md","sourceDirName":"deploy","slug":"/deploy/admin","permalink":"/bytedesk/docs/deploy/admin","draft":false,"unlisted":false,"editUrl":"https://github.com/bytedesk/bytedesk/docs/deploy/admin.md","tags":[],"version":"current","sidebarPosition":2,"frontMatter":{"sidebar_label":"Admin Dashboard","sidebar_position":2},"sidebar":"tutorialSidebar","previous":{"title":"JAR","permalink":"/bytedesk/docs/deploy/jar"},"next":{"title":"Client","permalink":"/bytedesk/docs/deploy/agent"}}');var o=d(5723),t=d(6246);const s={sidebar_label:"Admin Dashboard",sidebar_position:2},r="Admin Dashboard Deployment",l={},a=[{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 c(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",pre:"pre",ul:"ul",...(0,t.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"admin-dashboard-deployment",children:"Admin Dashboard 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-admin.git\ncd bytedesk-admin\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/admin/\n"})})]})}function p(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(c,{...e})}):c(e)}},6246:(e,n,d)=>{d.d(n,{R:()=>s,x:()=>r});var i=d(2155);const o={},t=i.createContext(o);function s(e){const n=i.useContext(t);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),i.createElement(t.Provider,{value:n},e.children)}}}]);