This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
public:setting_up_test_development_environment [2016/04/29 12:54] acorbi [After provisioning] |
public:setting_up_test_development_environment [2020/07/10 05:39] arkyarky Need rewrite |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | FIXME **This page is outdated. Please help completing the wiki updates.**\\ //(remove this paragraph once the page is updated)// | ||
====== Setting up test & development environment ====== | ====== Setting up test & development environment ====== | ||
Line 100: | Line 101: | ||
* If they are correctly provided, then try to change the location of Ubuntu servers to different regions that is closer to your location. | * If they are correctly provided, then try to change the location of Ubuntu servers to different regions that is closer to your location. | ||
- | * Unordered List ItemGo to "ansible/roles/common-ubuntu/files", you will see a series of .list files that contain Ubuntu servers from different regions. | + | * Go to "ansible/roles/common-ubuntu/files", you will see a series of .list files that contain Ubuntu servers from different regions. |
* Then update the source file name in **main.yml** located in "ansible\roles\common-ubuntu\tasks". | * Then update the source file name in **main.yml** located in "ansible\roles\common-ubuntu\tasks". | ||
* For example, in line 3: | * For example, in line 3: | ||
Line 173: | Line 174: | ||
=== Finish configuring CKAN === | === Finish configuring CKAN === | ||
- | The provisioning scripts installs CKAN and its dependencies plus some extensions, but there are still some actions to be taken in order to configure the development environment completely. | + | The provisioning scripts installs CKAN and its dependencies plus some extensions, but there are still some actions to be taken in order to configure the development environment completely: |
- | <WRAP center round info 90%> | + | == Creating a system administrator user == |
- | Please refer to [[internal:migrating_from_previous_system|Migrating from previous System]] and follow the instructions specified there in order to initialize the recently created test & development environment with real data. | + | |
- | </WRAP> | + | After activating the python environment with <code>. ~/.virtualenvs/ckan/bin/activate</code>, you can execute <code>paster --plugin=ckan sysadmin add USERNAME ~/etc/ckan/default/development.ini</code> OR <code>paster --plugin=ckan sysadmin add USERNAME -c ~/etc/ckan/default/development.ini |
+ | </code>for creating a new user with sysadmin permissions, or attribute those permissions to an existing user. USERNAME is the account name, you can name whatever eg. admin or user1 | ||
+ | |||
+ | Once this is done and password has been set, you can login into CKAN under http://192.168.33.10:8081/user/login. | ||
+ | |||
+ | == Inserting initial data using ckanext-odm_migration == | ||
+ | |||
+ | Since the [[http://github.com/OpenDevelopmentMekong/ckanext-odm_migration|ckanext-odm_migration]] extension gets installed automatically while provisioning the vagrant machine. Once logged in, you can access http://192.168.33.10:8081/migration where you will find a series of utilities for inserting initial data and importing taxonomy terms and their translations and/or law records. | ||
+ | |||
+ | {{ :public:screenshot_from_2016-04-29_14-56-27.png?300 |}} | ||
=== Finish configuring WP === | === Finish configuring WP === | ||
Line 195: | Line 205: | ||
{{ :mirror_not_found_error.png?600 |}} | {{ :mirror_not_found_error.png?600 |}} | ||
- | In order to solve this, a failsafe sources list can be selected. For that, it is just necessary to change the following line in the **deployment/ansible/roles/common/tasks/main.yml** file: | + | In order to solve this, a failsafe sources list can be selected. For that, it is just necessary to change the following line in the **deployment/ansible/roles/common-ubuntu/tasks/main.yml** file: |
<code> | <code> |