Examples
Running the server programmatically:
1from yfrake import server
2
3if not server.is_running()
4 server.start()
5
6# do other stuff
7
8if server.is_running()
9 server.stop()
Creating the ‘yfrake_settings.ini’ file to the CWD if it doesn’t exist, without running the server:
$ python -m yfrake --config-file hereRunning the server from the terminal:
1) With the default configuration:
$ python -m yfrake --run-server2) With ‘yfrake_settings.ini’ in the CWD:
$ python -m yfrake --run-server --config-file here3) With the config file in a custom directory:
$ python -m yfrake --run-server --config-file "/path/to/'yfrake_settings.ini"