...
- Follow the instructions on the Platform Bootstrap to set up local backend stack.
Build and launch a local backend stack. From an up-to-date clone of Synapse-Repository-Services on your local box:
Build the local stack by running 'mvn clean install -Dorg.sagebionetworks.database.drop.schema=true'.
- Now launch it:
- cd integration-test
- mvn cargo:run
Verify the services are running correctly by visiting http://localhost:8080/services-repository-develop-SNAPSHOT/repo/v1/version you should see something like this:
Code Block {"version":"develop-SNAPSHOT"}
- In the SWC project root pom.xml, change the synapse.version tag to
develop-SNAPSHOT (so that the dependency is pointing to the code that's running on your local stack).
- Set the repository endpoints in your maven settings.xml file by adding the following properties:
<org.sagebionetworks.
...
repositoryservice.endpoint>http://localhost:8080/services-repository-develop-SNAPSHOT/repo/v1</org.sagebionetworks.repositoryservice
...
...
<org.sagebionetworks.searchservice.endpoint>http://localhost:8080/services-repository-develop-SNAPSHOT/</org.sagebionetworks.searchservice.endpoint>
<org.sagebionetworks.portal.endpoint>http://127.0.0.1:8888/Portal.html</org.sagebionetworks.portal.endpoint>
...
Restart the Portal app to load these properties from settings.xml.
How to point to
...
a remote stack
Set the repository endpoints endpoint parameters in your maven settings.xml file by adding the following properties :
<org.sagebionetworks.authenticationservice.privateendpoint>https://auth-staging.prod.sagebase.org/auth/v1</org.sagebionetworks.authenticationservice.privateendpoint>
<org.sagebionetworks.authenticationservice.publicendpoint>https://auth-staging.prod.sagebase.org/auth/v1</org.sagebionetworks.authenticationservice.publicendpoint>
<org.sagebionetworks.repositoryservice.endpoint>https://repo-staging.prod.sagebase.org/repo/v1</org.sagebionetworks.repositoryservice.endpoint>
<org.sagebionetworks.fileservice.endpoint>https://file-staging.prod.sagebase.org/file/v1</org.sagebionetworks.fileservice.endpoint>
<org.sagebionetworks.searchservice.endpoint>https://search-staging.prod.sagebase.org/</org.sagebionetworks.searchservice.endpoint>
<org.sagebionetworks.portal.endpoint>http://127.0.0.1:8888/Portal.html</org.sagebionetworks.portal.endpoint>
Restart the Portal app to load these properties from settings.xml.
How to point to prod
Set the repository endpoints in your maven settings.xml file by adding the following properties(update the values to match the stack that you want to point to):
<org.sagebionetworks.authenticationservice.privateendpoint>https://auth-prod.prod.sagebase.org/auth/v1</orgstack.instance>232</org.sagebionetworks.authenticationservicestack.privateendpoint>instance><org.sagebionetworks.authenticationservice.publicendpoint>https://auth-prod.prod.sagebase.org/auth/v1<stack>prod</org.sagebionetworks.authenticationservice.publicendpoint>stack><org.sagebionetworks.repositoryservicestack.endpoint>https://repo-prod.prod.sagebase.org/repo/v1</beanstalk.number>0</org.sagebionetworks.repositoryservice.endpoint>
<org.sagebionetworks.fileservice.endpoint>https://file-prod.prod.sagebase.org/file/v1</org.sagebionetworks.fileservice.endpoint>stack.repo.beanstalk.number>
<org.sagebionetworks
...
.
...
portal.endpoint>http://127.0.0.1:8888/Portal.html
...
</org.sagebionetworks.portal.
...
endpoint>
Restart the Portal app to load these properties from settings.xml.
...