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

Map doesn't work #59

Open
TheLastGimbus opened this issue May 30, 2021 · 9 comments
Open

Map doesn't work #59

TheLastGimbus opened this issue May 30, 2021 · 9 comments

Comments

@TheLastGimbus
Copy link

Hi there!
I've spined up the whole server (back + front end) with docker-compose, and filled .env.local with correct values:

VUE_APP_LOCATION_API_ENDPOINT="https://waar.matih.duckdns.org/retrieve"
VUE_APP_MAPBOX_ACCESS_TOKEN="fsdhsdajkghsajgsahlfg..."

But map doesn't work:
image

I have it public, so you can even check this yourself: https://waar.matih.duckdns.org/

@ricardobalk
Copy link
Member

ricardobalk commented May 31, 2021

I just merged waarzitjenu/map@5bf0190 which fixes this problem. Courtesy of @denysvitali. I still need to update the docs.

The problem was caused by:
https://github.com/waarzitjenu/map/blob/10cc2f268afdb94f82a7912e815caf345a423a13/src/components/Mapbox.vue#L40
which has been replaced by:
https://github.com/waarzitjenu/map/blob/5bf01903e3e10a32e8977ca95aac160784598d75/src/components/Mapbox.vue#L40

Please let me know if it works or when you need any further assistance with it 👍🏼

@TheLastGimbus
Copy link
Author

I git pulled and docker-compose down && docker-compose up --builded (actually I burned every volume to the ground and re built it from scratch multiple times), and still same 404:

image

@denysvitali
Copy link

For some reason your project seems to still have that stylesheet.

Two things:

  • can you please confirm (git rev-parse HEAD) that you're using the latest commit?
  • can you please clear the cache of your browser / try with incognito mode?

@TheLastGimbus
Copy link
Author

 git log
commit 0f4fa5dd1b99dfa452e19b5848b6f60c822043df (HEAD -> develop, origin/develop, origin/HEAD)
Merge: 16ac009 aad3935
Author: Ricardo Balk <[email protected]>
Date:   Thu Dec 24 15:59:14 2020 +0100

    Merge branch 'feature/issues/#56-operation-flashback' into develop

Incognito / ctr+shift+r / opening in another browser doesn't work

@denysvitali
Copy link

Oh yes right, @ricardobalk you need to bump the submodule version on develop here.

For you @TheLastGimbus , do:

cd web
git pull

And try again :)

@ricardobalk
Copy link
Member

Actually, I'm planning to remove the submodule from the Git repo (#60).

So I have to...

Will do that right away. 👍

@ricardobalk
Copy link
Member

Finished it.

  • Try to pull the latest version of this repository, waarzitjenu/server
  • In a shell environment, pass your environment variables:
    export LOCATION_API_ENDPOINT=http://localhost:8080/retrieve
    export MAPBOX_ACCESS_TOKEN=<your mapbox access token here>
  • Then, build and run the new docker-compose file:
    docker-compose build --no-cache
    docker-compose up

@TheLastGimbus
Copy link
Author

TheLastGimbus commented Jun 4, 2021

I serve my stuff with Caddy - should I now expose map port as waar.mydomain and server as api.waar.mydomain, or what would you recommend to me?

@denysvitali
Copy link

@TheLastGimbus That sounds like a good option to me :)

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

No branches or pull requests

3 participants