Files
OpenSign/assets/js/debc6b9f.7a5a40a6.js
T

1 line
3.5 KiB
JavaScript

"use strict";(self.webpackChunkOpenSign_Docs=self.webpackChunkOpenSign_Docs||[]).push([[7429],{14953:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>a,contentTitle:()=>n,default:()=>u,frontMatter:()=>i,metadata:()=>l,toc:()=>c});var o=t(85893),r=t(11151);const i={sidebar_position:5},n="Deploy your site",l={id:"self-host/tutorial-basics/deploy-your-site",title:"Deploy your site",description:"Docusaurus is a static-site-generator (also called Jamstack).",source:"@site/docs/self-host/tutorial-basics/deploy-your-site.md",sourceDirName:"self-host/tutorial-basics",slug:"/self-host/tutorial-basics/deploy-your-site",permalink:"/docs/self-host/tutorial-basics/deploy-your-site",draft:!1,unlisted:!1,editUrl:"https://github.com/opensignlabs/opensign/tree/feat-docs/docs/docs/self-host/tutorial-basics/deploy-your-site.md",tags:[],version:"current",sidebarPosition:5,frontMatter:{sidebar_position:5},sidebar:"selfhostSidebar",previous:{title:"Markdown Features",permalink:"/docs/self-host/tutorial-basics/markdown-features"},next:{title:"Congratulations!",permalink:"/docs/self-host/tutorial-basics/congratulations"}},a={},c=[{value:"Build your site",id:"build-your-site",level:2},{value:"Deploy your site",id:"deploy-your-site-1",level:2}];function d(e){const s={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",strong:"strong",...(0,r.a)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.h1,{id:"deploy-your-site",children:"Deploy your site"}),"\n",(0,o.jsxs)(s.p,{children:["Docusaurus is a ",(0,o.jsx)(s.strong,{children:"static-site-generator"})," (also called ",(0,o.jsx)(s.strong,{children:(0,o.jsx)(s.a,{href:"https://jamstack.org/",children:"Jamstack"})}),")."]}),"\n",(0,o.jsxs)(s.p,{children:["It builds your site as simple ",(0,o.jsx)(s.strong,{children:"static HTML, JavaScript and CSS files"}),"."]}),"\n",(0,o.jsx)(s.h2,{id:"build-your-site",children:"Build your site"}),"\n",(0,o.jsxs)(s.p,{children:["Build your site ",(0,o.jsx)(s.strong,{children:"for production"}),":"]}),"\n",(0,o.jsx)(s.pre,{children:(0,o.jsx)(s.code,{className:"language-bash",children:"npm run build\n"})}),"\n",(0,o.jsxs)(s.p,{children:["The static files are generated in the ",(0,o.jsx)(s.code,{children:"build"})," folder."]}),"\n",(0,o.jsx)(s.h2,{id:"deploy-your-site-1",children:"Deploy your site"}),"\n",(0,o.jsx)(s.p,{children:"Test your production build locally:"}),"\n",(0,o.jsx)(s.pre,{children:(0,o.jsx)(s.code,{className:"language-bash",children:"npm run serve\n"})}),"\n",(0,o.jsxs)(s.p,{children:["The ",(0,o.jsx)(s.code,{children:"build"})," folder is now served at ",(0,o.jsx)(s.a,{href:"http://localhost:3000/",children:"http://localhost:3000/"}),"."]}),"\n",(0,o.jsxs)(s.p,{children:["You can now deploy the ",(0,o.jsx)(s.code,{children:"build"})," folder ",(0,o.jsx)(s.strong,{children:"almost anywhere"})," easily, ",(0,o.jsx)(s.strong,{children:"for free"})," or very small cost (read the ",(0,o.jsx)(s.strong,{children:(0,o.jsx)(s.a,{href:"https://docusaurus.io/docs/deployment",children:"Deployment Guide"})}),")."]})]})}function u(e={}){const{wrapper:s}={...(0,r.a)(),...e.components};return s?(0,o.jsx)(s,{...e,children:(0,o.jsx)(d,{...e})}):d(e)}},11151:(e,s,t)=>{t.d(s,{Z:()=>l,a:()=>n});var o=t(67294);const r={},i=o.createContext(r);function n(e){const s=o.useContext(i);return o.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function l(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:n(e.components),o.createElement(i.Provider,{value:s},e.children)}}}]);