iati-data-access / data-backend

GNU Affero General Public License v3.0
2 stars 0 forks source link

Deploy latest version of the backend #1

Closed markbrough closed 1 year ago

markbrough commented 1 year ago

Hello @radix0000 @odscjames

Please could you deploy the latest version of this repository? I think the following should work:

git pull
pip3 install -r requirements.txt
flask db upgrade

Then run the following commands to download, parse, update (in the database) and group (for external access) the following files:

flask download
flask process
flask update
flask group

This last set of commands should be run initially every 24 hours. It would be great to understand how long this process currently takes on the server, if possible?

Many thanks!

markbrough commented 1 year ago

Hi @radix0000 it seems that the files didn't load in on Friday -- there were some bugs in the update script. Please could you run these commands and check if it runs OK? The download and process commands aren't necessary right now but it would be good to run the full set of commands (listed above) every day going forward.

git pull
flask db upgrade
flask update