Conversation
|
@mbocevski @jqnatividad would love your input on this, particularly on the High Availability Setup. @jqnatividad I think I captured all your proposed changes but let me know if you think something is missing. |
| In order to tell CKAN where this webservice is located, the following must be | ||
| added to the `[app:main]` section of your CKAN configuration file : | ||
|
|
||
| ckan.datapusher.url = http://0.0.0.0:8800/ |
There was a problem hiding this comment.
I think it's better the default URL to be http://127.0.0.1:8800 as is in the config files.
| ckan.datapusher.url = http://0.0.0.0:8800/ | |
| ckan.datapusher.url = http://127.0.0.1:8800/ |
| If you need to change the host or port, copy `deployment/datapusher_settings.py` to | ||
| `deployment/datapusher_local_settings.py` and modify the file to suit your needs. |
There was a problem hiding this comment.
When changing the HOST and PORT of datapusher in settings, one must also change them in the uwsgi config as well https://github.com/ckan/datapusher/blob/master/deployment/datapusher-uwsgi.ini#L3.
| If you need to change the host or port, copy `deployment/datapusher_settings.py` to | |
| `deployment/datapusher_local_settings.py` and modify the file to suit your needs. | |
| If you need to change the host or port, copy `deployment/datapusher_settings.py` to | |
| `deployment/datapusher_local_settings.py` and modify the file to suit your needs. | |
| Make sure to update http setting in `deployment/datapusher-uwsgi.ini` to match your host:port | |
| setting. |
|
@amercader Looks clean and I like moving the docs to the repo itself, I had 2 minor comments. Perhaps it's a good idea to include a section in the README about the uwsgi settings, cause we also are setting |
|
Thanks @mbocevski I added all your suggestions |
| one you need to adapt the relevant paths in the `datapusher-uwsgi.ini` to the ones you are using. | ||
|
|
||
|
|
||
| ### High Availability Setup |
There was a problem hiding this comment.
Great! This section captures the essence of what I did in the two PRs.
| | -- | -- | -- | | ||
| | HOST | '0.0.0.0' | Web server host | | ||
| | PORT | 8800 | Web server port | | ||
| | SQLALCHEMY_DATABASE_URI | 'sqlite:////tmp/job_store.db' | SQLAlchemy Database URL. See note about database backend below. | |
There was a problem hiding this comment.
We should change it from /tmp to /var/lib/ckan as @mbocevski suggested.
|
Was this part of the 2.9.1 patch release? Can we move the /tmp/job_store.db to /var/lib/ckan in 2.9.1 or not yet (package install)? |
|
@abedkhooli datapusher has a separate release cycle than CKAN, so it's not related to the patch releases. Unless I'm missing something you can change the db location to |
|
@amercader thanks. I moved it to |
Fixes #198
Fixes #200
Fixes #129