Skip to content

Instantly share code, notes, and snippets.

@ajomathew
Last active July 23, 2020 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajomathew/75081a8569232109d416a071e5e03330 to your computer and use it in GitHub Desktop.
Save ajomathew/75081a8569232109d416a071e5e03330 to your computer and use it in GitHub Desktop.
Find and Replace URL using sed in file
sed -i 's/exports.pw.*/exports.pw= "'$(neo4jPassword)'"/g' $(Build.Repository.LocalPath)/MetadataManagementDashboard_1/app/static/js/JS_neo4j_settings.js
sed -i 's,http://localhost:7474/db,http://'$(acrURL)':7474/db,g' $(Build.Repository.LocalPath)/MetadataManagementDashboard_1/app/static/js/JS_neo4j_settings.js
sed -i 's,http://localhost:3000,http://'$(acrURL)':3000,g' $(Build.Repository.LocalPath)/MetadataManagementDashboard_1/app/static/js/JS_neo4j_settings.js
cat $(Build.Repository.LocalPath)/MetadataManagementDashboard_1/app/static/js/JS_neo4j_settings.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment