-
Notifications
You must be signed in to change notification settings - Fork 3
Updating ArcGIS DB (Manual Version)
Currently, the data migration can be done by clicking the button in the admin interface. The following explanations are manual ways to update the server without using the admin interface.
- Opening a terminal
- Navigate to the directory with the
agol_integration.pyscript - Running bash script
- Checking output
# Navigate to the repository
cd /path/projects/impact-map
# download the most up-to-date scripts (just in case)
git pull origin master
# navigate to directory with agol_integration.py script
cd scripts/agol-integration/
# Run migrate.sh (this file is available from developers or administrators, not available in the repo)
bash migrate.sh # for development map update
bash migrate.sh production # for production map update
-
Bash error If there is an error when running
migrate.sh, it's possible due to the line-ending issue. For example, Windows saves files with its own line endings and it's not working on Macs or in the Bash command line. So if this happens, openmigrate.shin one of your editor such as Sublime Text, and change the line endings into Unix (from Windows). -
ArcGIS update error If you receive an error while uploading data, run the script one more time. It is possible that the script is disconnected from ArcGIS if there are too many data. If the error occurs continuously after 2 to 3 times of running the script, contact the administrator.
-
Implementations
-
Deployment and Update