Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,11 @@ integation. Please refer to the [DataPusher Settings](https://docs.ckan.org/en/l

### DataPusher Configuration

The DataPusher instance is configured in the `deployment/datapusher_settings.py` file.
The DataPusher instance is configured in the `deployment/datapusher_settings.py`
file. The location of this file can be adjusted using the `JOB_CONFIG`
environment variable which should provide an absolute path to a python-formatted
config file.

Here's a summary of the options available.

| Name | Default | Description |
Expand Down
3 changes: 2 additions & 1 deletion deployment/datapusher.wsgi
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import ckanserviceprovider.web as web
config_filepath = os.path.join(
os.path.dirname(os.path.abspath(__file__)), 'datapusher_settings.py')

os.environ['JOB_CONFIG'] = config_filepath
if 'JOB_CONFIG' not in os.environ:
os.environ['JOB_CONFIG'] = config_filepath

web.init()

Expand Down