Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frontend can't be deployed on subpath #1027

Open
kosarko opened this issue Feb 13, 2023 · 2 comments
Open

frontend can't be deployed on subpath #1027

kosarko opened this issue Feb 13, 2023 · 2 comments

Comments

@kosarko
Copy link
Member

kosarko commented Feb 13, 2023

probably fixed in upstream, see DSpace/dspace-angular#1488 DSpace/dspace-angular#1642

@kosarko
Copy link
Member Author

kosarko commented Apr 29, 2024

@milanmajchrak

14305  nvm use v18
14306  source .env-yarn-dev
14307  cat .env-yarn-dev

export NODE_OPTIONS=--max-old-space-size=4096
#export DSPACE_REST_HOST=localhost
#export DSPACE_REST_PORT=8080
export DSPACE_REST_HOST=dspace-dev.ufal.mff.cuni.cz
export DSPACE_REST_PORT=443
export DSPACE_REST_SSL=true
export DSPACE_REST_NAMESPACE=/server
export DSPACE_UI_NAMESPACE=/repository/ui


14308  yarn start:dev
1027.mp4

@kosarko
Copy link
Member Author

kosarko commented Oct 10, 2024

The docker setup needs some tweaks (in dockerless setup some would be obvious):

#docker/docker-compose-rest.yml
       while (!</dev/tcp/dspacedb/543${INSTANCE}) > /dev/null 2>&1; do sleep 1; done;
+      pushd ../webapps && unlink server && ln -s /dspace/webapps/server/ 'repository#server' && popd
       /dspace/bin/dspace database migrate force
#docker/docker-compose.yml
-      DSPACE_UI_NAMESPACE: /
+      DSPACE_UI_NAMESPACE: /repository/
       DSPACE_REST_SSL: ${DSPACE_SSL:-false}
       DSPACE_REST_HOST: ${DSPACE_HOST:-localhost}
-      DSPACE_REST_PORT: ${DSPACE_REST_PORT}
-      DSPACE_REST_NAMESPACE: /server
+      DSPACE_REST_PORT: 443
+      DSPACE_REST_NAMESPACE: /repository/server
     image: ${DSPACE_UI_IMAGE:-dataquest/dspace-angular:dspace-7_x}
     volumes:
     - ./config.prod.yml:/app/config/config.prod.yml
+    - ./aai.js:/app/dist/browser/aai.js

#docker/aai.js
...
var namespace = 'repository';
...

The problem in the video is still valid (it doesn't manifest on dspace-dev/repository until I switch the ukrepo off; ie. it's using the /assets from ukrepo if that's running)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants