Skip to content

How to push collections from WebApp to GitHub for indexing

Bishwas Praveen edited this page Dec 15, 2023 · 7 revisions

Step 1 : SSH into the sde-indexing-helper server

Use the command ssh sde to get into the server (The command varies based on your configuration).

Step 2 : Direct yourself into the application directory

Use the command cd sde-indexing-helper to move into the application workspace.

Step 3 : Activate Django shell

An alias has already been set in place fro you to use to achieve this. Just type in dmshell to activate django shell.

Step 4 : Execute the python file within the scripts folder

Execute the command python scripts/push_curated_collections_to_github.py to run the script.

Running this script pushes all the collection source codes that have a workflow status of CURATED to GitHub and creates a branch called automated-webapp-changes. If you wish to push other collections instead, you could always go in and change the filtering statement within this script and push those respective colelctions instead.