From 078257dd1bf350561294d261e383457090354f61 Mon Sep 17 00:00:00 2001 From: Rida KEJJI <42012627+Rkejji@users.noreply.github.com> Date: Mon, 25 Nov 2024 01:23:17 +0100 Subject: [PATCH] docs: updated the install process in pypi.mdx (#31044) Co-authored-by: Rida KEJJI <42012627+ShameGod@users.noreply.github.com> --- docs/docs/installation/pypi.mdx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/docs/installation/pypi.mdx b/docs/docs/installation/pypi.mdx index 1d39a9523..3e01986f5 100644 --- a/docs/docs/installation/pypi.mdx +++ b/docs/docs/installation/pypi.mdx @@ -130,21 +130,22 @@ First, start by installing `apache-superset`: pip install apache-superset ``` +Then, define mandatory configurations, SECRET_KEY and FLASK_APP: +```bash +export SUPERSET_SECRET_KEY=YOUR-SECRET-KEY +export FLASK_APP=superset +``` + Then, you need to initialize the database: ```bash superset db upgrade ``` -:::tip -Note that some configuration is mandatory for production instances of Superset. In particular, Superset will not start without a user-specified value of SECRET_KEY. Please see [Configuring Superset](/docs/configuration/configuring-superset). -::: - Finish installing by running through the following commands: ```bash # Create an admin user in your metadata database (use `admin` as username to be able to load the examples) -export FLASK_APP=superset superset fab create-admin # Load some data to play with