Skip to content

Commit

Permalink
Fix pgAdmin CLI setup-db startup issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
khushboovashi authored and akshay-joshi committed Dec 19, 2023
1 parent d9de8df commit 7b79f80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/linux/setup-web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ fi

# Run setup script first:
echo "Creating configuration database..."
if ! /usr/pgadmin4/venv/bin/python3 /usr/pgadmin4/web/setup.py;
if ! /usr/pgadmin4/venv/bin/python3 /usr/pgadmin4/web/setup.py setup-db;
then
echo "Error setting up server mode. Please examine the output above."
exit 1
Expand Down
1 change: 1 addition & 0 deletions web/pgadmin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ def create_app(app_name=None):
app.config.from_object(config)
app.config.update(dict(PROPAGATE_EXCEPTIONS=True))

config.SETTINGS_SCHEMA_VERSION = CURRENT_SCHEMA_VERSION
##########################################################################
# Setup logging and log the application startup
##########################################################################
Expand Down

0 comments on commit 7b79f80

Please sign in to comment.