blob: 91c17888a6cc3aee0fb942b7289f703286d79bed [file] [log] [blame]
{"version":3,"sources":["webpack:///./src/pages/docs/installation/upgrading_superset.mdx"],"names":["_frontmatter","MDXLayout","DefaultLayout","MDXContent","components","props","mdxType","isMDXComponent"],"mappings":"wPAMaA,G,UAAe,S,oOAE5B,IAKMC,EAAYC,IACH,SAASC,EAAT,GAGZ,IAFDC,EAEC,EAFDA,WACGC,EACF,8BACD,OAAO,YAACJ,EAAD,eAAeI,EAAf,CAAsBD,WAAYA,EAAYE,QAAQ,cAC3D,iBAAQ,CACN,GAAM,sBADR,sBAGA,iBAAQ,CACN,GAAM,kBADR,kBAGA,+FACA,uBAAK,mBAAU,CACX,UAAa,gBACb,WAAc,OAFb,0BAKL,iEACE,yBAAgB,CACd,WAAc,KADhB,sBADF,sBAKA,uBAAK,mBAAU,CACX,UAAa,gBACb,WAAc,OAFb,qDAML,sHACA,uBAAK,mBAAU,CACX,UAAa,gBACb,WAAc,OAFb,wBAKL,iBAAQ,CACN,GAAM,8BADR,8BAGA,kGACA,uBAAK,mBAAU,CACX,UAAa,gBACb,WAAc,OAFb,gFAOL,yU,kOAOJH,EAAWI,gBAAiB","file":"component---src-pages-docs-installation-upgrading-superset-mdx-4e779e8a3faeb1562d8e.js","sourcesContent":["import * as React from 'react'\n /* @jsx mdx */\nimport { mdx } from '@mdx-js/react';\n/* @jsx mdx */\n\nimport DefaultLayout from \"/Users/max/code/superset/docs/node_modules/gatsby-theme-docz/src/base/Layout.js\";\nexport const _frontmatter = {};\n\nconst makeShortcode = name => function MDXDefaultShortcode(props) {\n console.warn(\"Component \" + name + \" was not imported, exported, or provided by MDXProvider as global scope\");\n return <div {...props} />;\n};\n\nconst MDXLayout = DefaultLayout;\nexport default function MDXContent({\n components,\n ...props\n}) {\n return <MDXLayout {...props} components={components} mdxType=\"MDXLayout\">\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 {...{\n \"className\": \"language-bash\",\n \"parentName\": \"pre\"\n }}>{`docker-compose down\n`}</code></pre>\n <p>{`Then, update the folder that mirrors the `}\n <inlineCode {...{\n \"parentName\": \"p\"\n }}>{`incubator-superset`}</inlineCode>\n {` repo through git:`}</p>\n <pre><code {...{\n \"className\": \"language-bash\",\n \"parentName\": \"pre\"\n }}>{`cd incubator_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 {...{\n \"className\": \"language-bash\",\n \"parentName\": \"pre\"\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 {...{\n \"className\": \"language-bash\",\n \"parentName\": \"pre\"\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":""}