mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-15 19:58:00 +00:00
1 line
4.3 KiB
JavaScript
1 line
4.3 KiB
JavaScript
"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7336],{6246:(e,n,d)=>{d.d(n,{R:()=>i,x:()=>t});var o=d(2155);const s={},r=o.createContext(s);function i(e){const n=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function t(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),o.createElement(r.Provider,{value:n},e.children)}},7333:(e,n,d)=>{d.r(n),d.d(n,{assets:()=>l,contentTitle:()=>t,default:()=>p,frontMatter:()=>i,metadata:()=>o,toc:()=>c});const o=JSON.parse('{"id":"deploy/source","title":"Source Code Deployment","description":"- Operating System: Ubuntu 20.04 LTS","source":"@site/i18n/en/docusaurus-plugin-content-docs/current/deploy/source.md","sourceDirName":"deploy","slug":"/deploy/source","permalink":"/docs/docs/deploy/source","draft":false,"unlisted":false,"editUrl":"https://github.com/bytedesk/bytedesk/docs/deploy/source.md","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"sidebar_label":"Source Code","sidebar_position":1},"sidebar":"tutorialSidebar","previous":{"title":"Private Deployment","permalink":"/docs/docs/category/private-deployment"},"next":{"title":"Docker","permalink":"/docs/docs/deploy/docker"}}');var s=d(5723),r=d(6246);const i={sidebar_label:"Source Code",sidebar_position:1},t="Source Code Deployment",l={},c=[{value:"Dependencies",id:"dependencies",level:2},{value:"Download",id:"download",level:2},{value:"Configuration",id:"configuration",level:2},{value:"Start",id:"start",level:2},{value:"Stop",id:"stop",level:2},{value:"Upgrade",id:"upgrade",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,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"source-code-deployment",children:"Source Code Deployment"})}),"\n",(0,s.jsx)(n.admonition,{type:"tip",children:(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Operating System: Ubuntu 20.04 LTS"}),"\n",(0,s.jsx)(n.li,{children:"Server Requirements: Minimum 2 cores 4GB RAM, Recommended 4 cores 8GB RAM"}),"\n"]})}),"\n",(0,s.jsx)(n.h2,{id:"dependencies",children:"Dependencies"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/docs/deploy/depend/jdk",children:"JDK"})}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.a,{href:"/docs/deploy/depend/mysql",children:"MySQL"})," or ",(0,s.jsx)(n.a,{href:"/docs/deploy/depend/postgresql",children:"PostgreSQL"})]}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/docs/deploy/depend/redis",children:"Redis"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/docs/deploy/depend/nginx",children:"Nginx"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/docs/deploy/depend/docker",children:"Docker"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/docs/deploy/depend/letsencrypt",children:"Let's Encrypt"})}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"download",children:"Download"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"# Download source code\ngit clone https://github.com/bytedesk/bytedesk.git\ncd bytedesk\n# Install dependencies\nyarn install\n# Start development\nyarn dev\n# Build for production\nyarn build\n"})}),"\n",(0,s.jsx)(n.h2,{id:"configuration",children:"Configuration"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"# Modify configuration files\n# Modify database configuration\nvim config/application.yml\n# Modify redis configuration\nvim config/redis.yml\n"})}),"\n",(0,s.jsx)(n.h2,{id:"start",children:"Start"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"# Start server\n./startup.sh\n# View logs\ntail -f logs/bytedesk.log\n"})}),"\n",(0,s.jsx)(n.h2,{id:"stop",children:"Stop"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"# Stop server\n./shutdown.sh\n"})}),"\n",(0,s.jsx)(n.h2,{id:"upgrade",children:"Upgrade"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"# Pull latest code\ngit pull\n# Build\nyarn build\n# Stop server\n./shutdown.sh\n# Start server\n./startup.sh\n"})})]})}function p(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(a,{...e})}):a(e)}}}]); |