blob: 3f448f07f3ba70eac82b6ffff985a805376ab1e8 [file] [log] [blame]
{"version":3,"sources":["webpack:///./src/pages/docs/installation/upgrading_superset.mdx"],"names":["_frontmatter","layoutProps","MDXLayout","DefaultLayout","MDXContent","components","props","mdxType","parentName","isMDXComponent"],"mappings":"wPAQaA,G,UAAe,S,oOAC5B,IAAMC,EAAc,CAClBD,gBAEIE,EAAYC,IACH,SAASC,EAAT,GAGZ,IAFDC,EAEC,EAFDA,WACGC,EACF,8BACD,OAAO,YAACJ,EAAD,eAAeD,EAAiBK,EAAhC,CAAuCD,WAAYA,EAAYE,QAAQ,cAG5E,iBAAQ,CACN,GAAM,sBADR,sBAGA,iBAAQ,CACN,GAAM,kBADR,kBAGA,+FACA,uBAAK,gCAAMC,WAAW,OAAU,CAC5B,UAAa,kBADZ,0BAIL,iEAAgD,0BAAYA,WAAW,KAAvB,YAAhD,sBACA,uBAAK,gCAAMA,WAAW,OAAU,CAC5B,UAAa,kBADZ,2CAKL,sHACA,uBAAK,gCAAMA,WAAW,OAAU,CAC5B,UAAa,kBADZ,wBAIL,iBAAQ,CACN,GAAM,8BADR,8BAGA,kGACA,uBAAK,gCAAMA,WAAW,OAAU,CAC5B,UAAa,kBADZ,gFAML,yU,kOAOJJ,EAAWK,gBAAiB","file":"component---src-pages-docs-installation-upgrading-superset-mdx-da873114a6ad1a68c51b.js","sourcesContent":["import * as React from 'react'\n /* @jsx mdx */\nimport { mdx } from '@mdx-js/react';\n/* @jsxRuntime classic */\n\n/* @jsx mdx */\n\nimport DefaultLayout from \"/home/runner/work/superset/superset/docs/node_modules/gatsby-theme-docz/src/base/Layout.js\";\nexport const _frontmatter = {};\nconst layoutProps = {\n _frontmatter\n};\nconst MDXLayout = DefaultLayout;\nexport default function MDXContent({\n components,\n ...props\n}) {\n return <MDXLayout {...layoutProps} {...props} components={components} mdxType=\"MDXLayout\">\n\n\n <h2 {...{\n \"id\": \"upgrading-superset\"\n }}>{`Upgrading Superset`}</h2>\n <h3 {...{\n \"id\": \"docker-compose\"\n }}>{`Docker Compose`}</h3>\n <p>{`First make sure to wind down the running containers in Docker Compose:`}</p>\n <pre><code parentName=\"pre\" {...{\n \"className\": \"language-bash\"\n }}>{`docker-compose down\n`}</code></pre>\n <p>{`Then, update the folder that mirrors the `}<inlineCode parentName=\"p\">{`superset`}</inlineCode>{` repo through git:`}</p>\n <pre><code parentName=\"pre\" {...{\n \"className\": \"language-bash\"\n }}>{`cd superset/\ngit pull origin master\n`}</code></pre>\n <p>{`Then, restart the containers and any changed Docker images will be automatically pulled down:`}</p>\n <pre><code parentName=\"pre\" {...{\n \"className\": \"language-bash\"\n }}>{`docker-compose up\n`}</code></pre>\n <h3 {...{\n \"id\": \"updating-superset-manually\"\n }}>{`Updating Superset Manually`}</h3>\n <p>{`To upgrade superset in a native installation, run the following commands:`}</p>\n <pre><code parentName=\"pre\" {...{\n \"className\": \"language-bash\"\n }}>{`pip install apache-superset --upgrade\nsuperset db upgrade\nsuperset init\n`}</code></pre>\n <p>{`While upgrading superset should not delete your charts and dashboards, we recommend following best\npractices and to backup your metadata database before upgrading. Before upgrading production, we\nrecommend upgrading in a staging environment and upgrading production finally during off-peak usage.`}</p>\n\n </MDXLayout>;\n}\n;\nMDXContent.isMDXComponent = true;\n "],"sourceRoot":""}