# Sample settings file for migraine.py. # Set database- and filesystem-specific options here. # Any settings in the [defaults] section apply to both test and prod. [defaults] # MySQL database server. host = localhost # MySQL login username. user = myuser # Prefix to give filenames of SQL dumpfiles, if any. The directory is set by # dump-dir, which in this example file we set separately for test and prod. dump_prefix = # Default commands to run if none are given on the command line. commands = dump-test dump-prod # Settings in the [prod] section override [defaults] for prod site only. [prod] db = mydbname # Destination directory for database dumps. If this is a relative path, # it will be interpreted relative to the current directory, so make sure # the script is called with a consistent current directory. dump-dir = database/prod_dump # Settings in the [test] section override [defaults] for test site only. [test] db = mydbname_test dump-dir = database/test_dump