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
Now that the project has both a back-end and a front-end interface (#15), it is recommended to create a Dockerfile that can be used to build the web interface (yarn i && yarn run build) and then run the Go back-end (go run main.go), so that the app can be started easily (docker build -t ricardobalk/go-osmand-tracker . && docker run [...] ricardobalk/go-osmand-tracker
The text was updated successfully, but these errors were encountered:
As can be seen in 247321f, the Dockerfile to build the map interface has been added. Will work on the Dockerfile for the API back-end soon. Might need something like docker-compose to combine the two and let them execute in the right order, because when want to use both the (Go-based) API back-end and the (Vue based) map interface, you'd need to build the map interface first and then run the back-end API.
How that works? Well, yarn run build usually builds the map interface and places the result in web/dist, and if web/dist exists, the Go server will serve that directory when visiting /. 🎉 added that in c8f0ac7
Anyways — the most practical thing would be to have a docker compose -d up or something similar that takes care of it. 😉
Now that the project has both a back-end and a front-end interface (#15), it is recommended to create a Dockerfile that can be used to build the web interface (
yarn i && yarn run build
) and then run the Go back-end (go run main.go
), so that the app can be started easily (docker build -t ricardobalk/go-osmand-tracker . && docker run [...] ricardobalk/go-osmand-tracker
The text was updated successfully, but these errors were encountered: