change file location

Asked by Mark Jones on 2013-08-01

I would like to store the recipe files on my home network so I can access it from other computers around the house. What file do I need to look at trying to modify in order to change the location that the program looks at for the file(s)?

Question information

Language:
English Edit question
Status:
Answered
For:
Gourmet Edit question
Assignee:
No assignee Edit question
Last query:
2013-08-01
Last reply:
2013-08-06
Bernhard Reiter (ockham-razor) said : #1

The database location isn't stored in a file, but can be set using a command line argument passed to gourmet. This subjet is best covered by our FAQ item 11 (found online at https://github.com/thinkle/gourmet/blob/master/FAQ for Gourmet version 0.16.0, but available in earlier versions, too):

11. Where does Gourmet store its data (including my recipes)?

On Linux, Gourmet stores its data by default in ~/.gourmet (i.e. a hidden
subfolder of your home directory named .gourmet -- mind the dot).
On Windows, the gourmet directory (without the dot) is buried somewhere
in your user directory (normally <UserDir>\AppData\Roaming\gourmet).
If you can't find it, use Windows Explorer to search it within your user
directory.

You can change that location by use of the `--gourmet-directory` command
line option. (Try `gourmet --help` for a list of all available options.)

Also note the `--database-url` option which allows specifying an
[SQLAlchemy-style database URL](http://docs.sqlalchemy.org/en/rel_0_8/core/engines.html#database-urls)
(which by default is something like `sqlite:///~/.gourmet/recipes.db`, but
could also be e.g. `mysql://gourmetrecipe:password@localhost/gourmetrecipe`
if you're using a MySQL database, which by the way could also reside on some
remote server.)

Can you help with this problem?

Provide an answer of your own, or ask Mark Jones for more information if necessary.

To post a message you must log in.