diff --git a/reflex/constants.py b/reflex/constants.py index cab2de821..1080c7798 100644 --- a/reflex/constants.py +++ b/reflex/constants.py @@ -214,7 +214,7 @@ DEFAULT_META_LIST = [] # The gitignore file. GITIGNORE_FILE = ".gitignore" # Files to gitignore. -DEFAULT_GITIGNORE = {WEB_DIR, DB_NAME, "__pycache__/", "*.py[cod]"} +DEFAULT_GITIGNORE = {WEB_DIR, "*.db", "__pycache__/", "*.py[cod]"} # The name of the reflex config module. CONFIG_MODULE = "rxconfig" # The python config file. diff --git a/tests/test_utils.py b/tests/test_utils.py index adf2cc30d..765b3d239 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -481,7 +481,7 @@ def test_initialize_non_existent_gitignore(tmp_path, mocker, gitignore_exists): if gitignore_exists: gitignore_file.touch() gitignore_file.write_text( - """reflex.db + """*.db __pycache__/ """ )