Crudcast

Running your Crudcast app

Once you’ve created your Crudcast config.yml file, you can start your app with the following command (from the same folder as your config file):

crudcast

Futher options

Config file

If your config.yml is in a different location, you can point Crudcast at it like this:

crudcast --config-file /path/to/custom/config.yml

Host

By default, Crudcast sets the host name to 0.0.0.0. This can be overwritten as follows:

crudcast --host 127.0.0.1

Port

Similary, the default port (5000) can also be modified

crudcast --port 9000

Import name

It’s also possible to specify Flask’s import_name parameter

crudcast --import-name myapplication

Debug mode

By default, Debug mode is set to False. You can enable it like this

crudcast --debug

Disable dotenv loading

By default, Flask looks for environmental variables in the nearest .env or .flaskenv file. To disable this behaviour, use the following command

crudcast --no-load-dotenv

Creating users

If you have enable the users model, you can create new users via the command line, as follows:

crudcast --create-user

Enter a username: chris
Enter password:
Confirm password:

Note

Using this switch doesn’t start the server - it will just exit once the user has been created