Code Monkey home page Code Monkey logo

Comments (7)

elkozmon avatar elkozmon commented on May 20, 2024

from zoonavigator.

elkozmon avatar elkozmon commented on May 20, 2024

Sorry for getting back to you so late. I am currently working on this, however, it's a bit tricky. In Angular you have to provide the "prefix" at build time, which happens during Docker image build, so it cannot be simply added as an environment variable to the final image.

from zoonavigator.

elkozmon avatar elkozmon commented on May 20, 2024

Hi, I updated the documentation with instructions on how to deploy ZooNavigator with custom URL. In short, you will have to build your own Docker image where you'll provide the URL prefix.

from zoonavigator.

mujina93 avatar mujina93 commented on May 20, 2024

Link should probably updated to: https://zoonavigator.elkozmon.com/en/latest/docker/custom-url.html ?

I'm trying to follow the instructions and build a custom docker image myself but I got the following error:

unable to create open ./src/environments/environment.prod.ts: no suchfile or directory

The command '/bin/sh -c dockerize     -template ./environment.ts.template:./src/environments/environment.prod.ts' returned a non-zero code: 1

Would you know what could be the reason?

from zoonavigator.

elkozmon avatar elkozmon commented on May 20, 2024

@mujina93 Thanks for the notice, I've updated the link. Also, I realized that the instructions were wrong (submodule init command) so I've updated that as well.

from zoonavigator.

mujina93 avatar mujina93 commented on May 20, 2024

@elkozmon Thanks for the quick answer!

A couple more things:

  • The instructions for the submodule(s) fail as the default is to get the via ssh. I was able to get past git submodule update --init --recursive by changing the urls in my .gitmodules to the http ones of your 2 submodules, followed by git submodule sync. Maybe it's worth adding these prior to the first instruction.

  • I was able to build the custom docker image. Then I try to run it with the same command I was using before:

docker run -d --network host -e HTTP_PORT=9000 --name rev-zoonavigator --restart unless-stopped my-zoonavigator

it starts, I'm able to reach it at <host>:9000/zoonavigator (but not at <host>:9000/zoonavigator/ with a / at the end), but then it's stuck loading the page. I only see the loading logo.

If I check the network in the browser console I see that it tries to make a request to http://93.90.193.89:9000/api/config.

Am I getting something wrong when trying to start it up or the basepath is missing somewhere (when /api/config is called)?

from zoonavigator.

elkozmon avatar elkozmon commented on May 20, 2024

@mujina93 Good point, thanks. I've already replaced those URLs by https. I believe the instructions are now correct.

As for the problem with base path, I'm not sure right now but it definitely sounds like a bug to me.
It would be best to address this with a new issue on Github.

from zoonavigator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.