Ckan basic configuration, seeding test data, and uwsgi

Aliases and sysadmin account Once you have ckan installed properly, it is time to do some basic configuration. In order to do this, the first thing is to add a sysadmin account for ckan. This can be done by running the following commands. To make it easier for me, I have created a permanent alias for ckan activation. I have edited my .bashrc file, and at the very end, I have added the following line: Now, source this file to update the current shell session and see if it works. Let’s get rid of the need to add the -c path_to_ckan_ini_file for every command. Update your .bashrc file to add the following: Seeding some test data Let’s create some test data in the system. Unfortunately, the documentation is again outdated here for the latest version. The actual commands that you need are provided below. With the latest version of ckan, we have multiple options to populate test data. You can add multiple forms of data, e.g. You can also clean all the test data by running the following commands. If you do run the clean command, it will drop all database tables in your ckan_default database. This means you will

Continue Reading

Setting up ckan on Ubuntu 18.04 – Python 3 and Amazon Lightsail

Image showing a globe with data points around it

Step 1: Create an Ubuntu 18.04 LTS instance in Amazon Lightsail Create a new instance on Amazon Lightsail. I called mine “ckan” and initiated it on Ubuntu 18.04 LTS. Once you have an instance created, go to Networking tab and create a static IP to associate this instance with. I called mine “ckan-static-ip” and attached it to the “ckan” instance. I also enabled automated snapshots at the ckan instance level. Optionally, at this time, you may want to associate this static IP with a domain name. I have associated this with in the godaddy DNS panel. Of course, there is nothing running on port 80 at the moment so your browser won’t show anything. At this point, you can go into your account, then in the SSH keys tab, and download the default key associated with your region in which you have created your instance. Mine is created in the Ireland eu-west-1 zone. Once downloaded (in my Downloads folder), copy it to a place which you will ssh from. Name it something simpler if you prefer (I named mine aws-key). The default username for an Ubuntu instance in Amazon Lightsail is ubuntu. Great, so you have an Ubuntu 18.04

Continue Reading

Site Footer

Sliding Sidebar

Blog of Masud Khokhar

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Currently Reading