I installed the Alfresco Content App follwing this guide: https://www.alfresco.com/abn/adf/docs/getting-started/
I have ACS 7.0 installed and running on localhost 8080 (installed with ZIP)
when I run my app using ng serve (npm start didn't work), I get this error: (I cannot login uising admin/admin)
I created an .env file in the root folder and set this variable:
APP_CONFIG_ECM_HOST="http://localhost:8080"
PS: I can't find app.config.json anywhere in my app folder. However I find app.config.json.tpl which seems the same!!!
Where is the problem and how I may fix it please?
Thank you in advance
Solved! Go to Solution.
I fixed it.
Apparently the problem was because npm start didn't work for some reason, so the preinstall command didn't excuted
so I had to run it manually and it works!
mkdir -p ./app/.tmp && npm run assemble-app-config && npm run validate-app-config
ng serve
I fixed it.
Apparently the problem was because npm start didn't work for some reason, so the preinstall command didn't excuted
so I had to run it manually and it works!
mkdir -p ./app/.tmp && npm run assemble-app-config && npm run validate-app-config
ng serve
I just tried v2.11.0 and npm start failed for me, but the reason is displayed in the output:
error: /home/mav/dev/alfresco-content-app/app/.tmp/app.config.json: Unexpected token $ in JSON at position 346
Taking a look at the app/.tmp/app.config.json file shows two variables that didn't get substituted which leads to invalid json. These must be new requirements in a recent update.
... "plugins": { "aosPlugin": ${APP_CONFIG_PLUGIN_AOS}, "contentService": ${APP_CONFIG_PLUGIN_CONTENT_SERVICE} }, ...
After adding the missing variables to my .env npm start worked as expected. These
APP_CONFIG_ECM_HOST=http://localhost:8080 APP_CONFIG_PLUGIN_AOS=true APP_CONFIG_PLUGIN_CONTENT_SERVICE=true
Hope this helps someone.
Discussions, help and advice about the Alfresco Development Framework.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.