[ckan-dev] Moving CKAN instance to another domain name

Alex Gartner alexandru.gartner+ckan at gmail.com
Tue Sep 8 10:14:27 UTC 2015


Hi Adria,

I've noticed that since we upgraded to CKAN 2.3 ( and moving away from OFS
 ) new resources only store the filename in the "url" column of the
"resource" table and not the entire URL.
Updating them from the UI doesn't change this fact while updating them via
API might ( I think if the full 'url' field is in the data_dict ).

So for the new resources I was able to switch to a new domain and the
download link was automatically updated after reindexing solr ( after
changing "ckan.site_url" ).

Now I wonder if this is how it's supposed to work for CKAN >= 2.3 or we did
some special configuration.
Thanks,
Alex

On Tue, Sep 8, 2015 at 12:12 PM, Adrià Mercader <adria.mercader at okfn.org>
wrote:

> Hi Tanmay,
>
> Unfortunately it seems that the URL for file uploads is stored on the
> database so it looks that you'll need to update the "resource" and
> "resource_revision" tables directly on the DB and reindex Solr.
>
> This assumes that you are using CKAN >= 2.2.
>
> I wonder if we should just store the url without the host part and add
> it via the show schema.
> What do other devs think?
>
> Adrià
>
> On 8 September 2015 at 07:56, Tanmay Thakur <tthakur at accela.com> wrote:
> > Hi,
> > We have a CKAN instance running for few months with filestore, datastore
> and
> > datapusher plugins.
> > We have many uploaded files and tables in datastore.
> > Now, we want to host the same CKAN instance on a different domain name (
> > Postgres and SOLR are on different VM and we can directly use it) .
> > I have following doubts:
> >
> > What are the necessary steps in deploying the CKAN instance?
> > Is changing “ckan.site_url” in production.ini sufficient?
> > Do we need to rebuild SOLR index?
> > How should we point to the previously uploaded files?
> >
> > Please reply even if you know the solution partially.
> > Thanks in advance.
> >
> >
> > Regards,
> > Tanmay
> >
> > _______________________________________________
> > ckan-dev mailing list
> > ckan-dev at lists.okfn.org
> > https://lists.okfn.org/mailman/listinfo/ckan-dev
> > Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
> >
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20150908/e91431df/attachment-0003.html>


More information about the ckan-dev mailing list