Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Update Process for Windows OS

Jura Khrapunov edited this page Nov 27, 2015 · 4 revisions

Use the following steps to install and update the undp.github.com repository. These steps are outlined for computers running a Microsoft Windows-based operating system.

Additional help on Github for Windows can be found in their help pages.

Requirements

1. Install Python

2. Install Github for Windows

3. Open Github for Windows

  • Sign in with your user name and password. Configure settings with your email.

4. Clone repo to computer

  • Click on the UNDP repository
  • Select the undp/open.undp.org repository
  • Select CLONE
  • You will know see the files copied to your computer and placed into the folder Documents/Github/open.undp.org/

Steps to Update

5. Copy and replace .xml file and all changed .csv files in the download/undp-export/ folder

  • Replace existing files with the updated export
  • Ensure these are correctly formatted CSV files

6. Open repo

  • Click Open this repo

7. Click tools -> open in shell here

8. Run processing script

  1. Navigate to /scripts folder.

  2. Make sure you have installed the requirements:

     $: pip install -r requirements.txt
    
  3. Run the main script

     $: python start.py
    

9. Commit changes

  • Navigate back to the Github app
  • You will now see the files that are changed
  • Enter a commit message and hit commit

10. Sync repository to push changes to the remote server

  • Select "Sync" to push your changes