You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see, the command to start the backend from the root is acceptance-backend-dev-start, which is different from that while in the backend directory of acceptance-backend-start.
I can submit a PR to fix this inconsistency, by inserting -dev as needed, and updating documentation that refers to it.
However, we need to be careful about the context of the documentation, specifically whether you used Cookieplone or cloned Volto to contribute. In Volto, the backend command omits -dev. Maybe we should change these commands in Volto core as well?
##### Acceptance tests (Cypress)######### Dev mode Acceptance tests.PHONY: acceptance-frontend-dev-start
acceptance-frontend-dev-start: ## Start acceptance frontend in development mode
RAZZLE_API_PATH=http://127.0.0.1:55001/plone pnpm start
######### Core Acceptance tests.PHONY: acceptance-backend-start
acceptance-backend-start: ## Start backend acceptance server#docker run -it --rm -p 55001:55001 $(DOCKER_IMAGE_ACCEPTANCE)# Uncomment next line and comment line above to use a custom image with the acceptance server (in case you need to use an specific backend add-on or version)
docker run -it --rm -e ZSERVER_HOST=0.0.0.0 -e ZSERVER_PORT=55001 -p 55001:55001 -e ADDONS='$(KGS) $(TESTING_ADDONS)' -e APPLY_PROFILES=plone.app.contenttypes:plone-content,plone.restapi:default,plone.volto:default-homepage -e CONFIGURE_PACKAGES=plone.app.contenttypes,plone.restapi,plone.volto,plone.volto.cors $(DOCKER_IMAGE) ./bin/robot-server plone.app.robotframework.testing.VOLTO_ROBOT_TESTING
The text was updated successfully, but these errors were encountered:
The frontend has a distinction between dev and production modes (in dev mode it watches for file changes and does hot module reloading in the browser). The backend doesn't have this distinction. So I would remove "dev" from all backend commands, but keep it for the frontend commands that use pnpm start rather than pnpm start:prod.
The acceptance make commands are not consistent between the project root and backend.
root
cookieplone-templates/project/{{ cookiecutter.__folder_name }}/Makefile
Lines 155 to 164 in f513c96
As you can see, the command to start the backend from the root is
acceptance-backend-dev-start
, which is different from that while in the backend directory ofacceptance-backend-start
.I can submit a PR to fix this inconsistency, by inserting
-dev
as needed, and updating documentation that refers to it.However, we need to be careful about the context of the documentation, specifically whether you used Cookieplone or cloned Volto to contribute. In Volto, the backend command omits
-dev
. Maybe we should change these commands in Volto core as well?https://github.com/plone/volto/blob/cfea4d988d25e41779b0742606bf43fa43d2bbee/packages/volto/Makefile#L116-L129
The text was updated successfully, but these errors were encountered: