OsmTravel / OsmGo

Osm Go !
https://osmgo.com/
MIT License
109 stars 15 forks source link

Simpler way to use Osm Go in a subdirectory #143

Closed DoFabien closed 2 years ago

DoFabien commented 2 years ago

Change some absolute paths to relative.

For Osm Go to work with a subdirectory, we need to add the --base-href parameter to ng build

Example : ng build --configuration production --base-href=/OsmGo/

We can test this locally,

ng build --configuration production --base-href=/www/

for example with http-server In root directory : http-server .

"http://127.0.0.1:8080/www/ " should work

dotcs commented 2 years ago

I fixed the build cmd in the GH Actions pipeline. Running a deployment test now. I'll merge this PR once the deployment has been successful and I've reverted 30924e6.