I am unable to deploy the oclmap using the readme files. I’m on a VM docker and trying to deploy standalone and not SSO. Do I have to change any variables or create .env.local file?
What I did -
cloned repos into my vm docker and started docker compose up and build.
Could you please tell me what changes I need to make in the docker-compose.yml for oclmap or oclapi2 to be able to deploy the mapper? I’m using a VM. Thanks.
Hi @Sny, I created env-config.js file and inserted window.env = {
API_URL: ‘http://my vm ip number here:8080’,
NODE_ENV: ‘production’,
LOGIN_REDIRECT_URL: ‘http://my vm ip number here/’,
OIDC_RP_CLIENT_ID: ‘’,
OIDC_RP_CLIENT_SECRET: ‘’,
GA_ACCOUNT_ID: ‘UA-000000-01’,
HOTJAR_ID: ‘’,
ERRBIT_URL: ‘’,
ERRBIT_KEY: ‘’,
};
because I was getting the error shown in the pic.
And then I did : grep -rl “process.env” src/ | xargs sed -i ‘s/process.env.(NODE_ENV)/process.env.\1/g; s/process.env./window.env./g’
And I can now load the frontend but when i click on sign-up or sign in, it shows 404 error.